Feng Forum
Support => Older versions => : claudio August 24, 2009, 10:37:48 AM
-
When you edit "Custom Properties" previous values disapear.
If you add a "Custom Property", it is displayed in the object view, but when you go to edit it again, all the previous values disapear.
This work fine until 1.4.2
Regards.
-
Hi,
You must select the object type in the custom properties edit view, to view the properties defined for these objects.
For now, no properties are shown until you select the object type.
regards.
-
This will be fixed for next version.
Thanks.
-
I have fixed the problem adding a missing 'echo' on lines 1269 and 1272 of "./application/helpers/application.php"
11267 if (is_array($properties)) {
1268 foreach($properties as $property) {
1269 echo '<script>og.addObjectCustomProperty(document.getElementById("'.$genid.'"), "'.$propert y->getPropertyName().'", "'.$property->getPropertyValue().'");</script>';
1270 } // for
1271 } // if
1272 echo '<script>og.addObjectCustomProperty(document.getElementById("'.$genid.'"), "", "");</script>';
1273 return $output;
1274 }
Please keep on mind for the next release.
Regards.
Claudio.
-
I was checking the code better and the correction is:
if (is_array($properties)) {
foreach($properties as $property) {
$output .= '<script>og.addObjectCustomProperty(document.getElementById("'.$genid.'"), "'.$property->getPropertyName().'", "'.$property->getPropertyValue().'");</script>';
} // for
} // if
$output .= '<script>og.addObjectCustomProperty(document.getElementById("'.$genid.'"), "", "");</script>';
Regards.