[ic] [interchange] Allow usernick to be NULL

Stefan Hornburg (Racke) racke at linuxia.de
Mon Jan 30 14:02:35 UTC 2017


On 01/26/2017 05:20 PM, Josh Lavin wrote:
> Quoting Stefan Hornburg (Racke) (racke at linuxia.de):
>> On 01/25/2017 11:06 PM, Josh Lavin wrote:
>>> commit 997abee40cefd483caaa6805196657874572e5c7
>>> Author: Josh Lavin <digory at cpan.org>
>>> Date:   Wed Jan 25 14:04:53 2017 -0800
>>>
>>>     Allow usernick to be NULL
>>>     
>>>     - will resolve issues with customer create from IC Admin
>>>     - however, usernick will then be NULL
>>>     - consider adding a usernick field to the customer creation form, or
>>>       else use of UserDB fallback_login
>>>
>>
>> Hello Josh,
>>
>> wouldn't it better to use a default value of '' instead of allowing NULL?
> 
> No, because the field has a UNIQUE constraint.
> 

Yeah, that's correct :-). What about fixing the admin form too :-)

Regards
           Racke

-- 
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration.



More information about the interchange-users mailing list