Ticket #284 (closed defect: fixed)

Opened 3 months ago

Last modified 3 days ago

DM2: default values in text widget overwrite set ones

Reported by: piotras Assigned to: adrenalin
Priority: major Milestone: 8.09.3 Ragnaroek
Component: MidCOM component Version: 1.8 Thor
Keywords: Cc:

Description

Set schema like this:

'storage' => 'parameter',

'type' => 'text', 'default' => '0', 'widget' => 'text',

Open component configuration and set '123' and save. Open again for editing, default value is set (0 in this case) instead of '123'. Parameter is stored with correct value.

all works fine after removing 'default' => '0' from schema.

Change History

09/30/08 14:29:36 changed by bergie

  • milestone changed from MidCOM 2.8 to 1.8 Thor.

10/07/08 16:13:32 changed by bergie

  • version changed from 2.8 to 1.8 Thor.
  • milestone changed from 1.8 Thor to 8.09 Ragnaroek.

Reassigning to Ragnaroek as that is now the stable branch.

10/07/08 16:26:07 changed by bergie

  • owner changed from tarjei to adrenalin.

10/13/08 10:29:59 changed by bergie

  • milestone changed from 8.09 Ragnaroek to 8.09.2 Ragnaroek.

10/20/08 22:59:33 changed by bergie

  • component changed from MidCOM core to MidCOM component.
  • summary changed from default values in text widget overwrite set ones to DM2: default values in text widget overwrite set ones.

10/31/08 12:48:42 changed by bergie

  • milestone changed from 8.09.2 Ragnaroek to 8.09.3 Ragnaroek.

11/28/08 15:16:21 changed by bergie

  • status changed from new to closed.
  • resolution set to fixed.

(In [19085]) Don't set default value from schema if we have value from type, fixes #284