Menu

#2854 (ok 3.1.4) Using textarea CharEditing drops default values

3.1.1
fixed
1
2013-06-11
2009-04-07
breathmint
No

When the config is edited to use textarea for char/varchar editing, i.e. the following line is added:

$cfg['CharEditing'] = 'textarea';

Then default values are ignored for insertion. Tested with NULL and NOT NULL, and in each case the insert field is blank, and a blank string is inserted for the record. Tested on Chrome and Firefox for phpmyadmin 3.1.1.

Discussion

  • Herman van Rink

    Herman van Rink - 2009-04-09
    • assigned_to: nobody --> helmo
     
  • Herman van Rink

    Herman van Rink - 2009-04-09

    I did some testing and can NOT reproduce this problem for a field which defaults to NULL.
    When the checkbox in the Null column preceding the field is checked, and the textarea is empty the field gets NULL in the resulting SQL.

    However when a field defaults to a string, e.g. 'foo', this value is not pre-filled in the textarea.
    I'll look into this.

     
  • breathmint

    breathmint - 2009-04-09

    I appreciate the comment, but I never made claim that this occurred for a NULL default. I only tested with a default string. What I was trying to state was the error occurs (for a string default) whether the field is allowed to be NULL or not (in both cases supplying the same default string).

    Thanks for anything you can do to help.

     
  • Herman van Rink

    Herman van Rink - 2009-04-09

    Fixed in subversion, thanks for reporting.

     
  • Herman van Rink

    Herman van Rink - 2009-04-09

    I see that I miss interpreted your first description.
    But anyway it's fixed in subversion revision 12341.

    Thanks for reporting

     
  • Herman van Rink

    Herman van Rink - 2009-04-09
    • priority: 5 --> 1
    • summary: Using textarea CharEditing drops default values --> (ok 3.1.4) Using textarea CharEditing drops default values
    • status: open --> open-fixed
     
  • breathmint

    breathmint - 2009-04-09

    Excellent, thanks for the quick response.

     
  • Marc Delisle

    Marc Delisle - 2009-04-25
    • status: open-fixed --> closed-fixed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed-fixed --> fixed
     
MongoDB Logo MongoDB