Feng Forum

Support => Older versions => : claudio August 24, 2009, 10:37:48 AM

: 1.5.2: Custom properties disapear
: 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.
: Re: 1.5.2: Custom properties disapear
: alvarotm01 August 24, 2009, 10:48:00 AM
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.
: Re: 1.5.2: Custom properties disapear
: ignacio August 24, 2009, 06:38:14 PM
This will be fixed for next version.

Thanks.
: Re: 1.5.2: Custom properties disapear
: claudio August 30, 2009, 05:15:24 PM
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.
: Re: 1.5.2: Custom properties disapear
: claudio September 16, 2009, 09:24:35 AM
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.