In my management.inc file, I have set a default value for an attribute that is a variable. Say this variable is set to "Test Name" when the asset is created.
Problem is, after this asset has been created that default overwritten, if step_03.php gets run again, that custom value gets reset to the default of "Test Name". How can I prevent the asset from overwriting the customized attribute data with defaults?
Default values in management.inc file
nnhubbard
(Nic Hubbard)
#1
Mark_Brydon
(Mark Brydon)
#2
[quote]
Problem is, after this asset has been created that default overwritten, if step_03.php gets run again, that custom value gets reset to the default of "Test Name". How can I prevent the asset from overwriting the customized attribute data with defaults?
[/quote]
In which order is the asset and step_03 being run (after this change) on the system? Was the asset created with a default value then step_03 run? In that case the displayed value will become "Test Name".
If the value was other than the default before or after the change, running step_03 again should maintain this value for the attribute.