Author Topic: 1.5.2: Custom properties disapear  (Read 2936 times)

claudio

  • Newbie
  • *
  • Posts: 36
    • View Profile
1.5.2: Custom properties disapear
« on: 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.

alvarotm01

  • Administrator
  • Sr. Member
  • *****
  • Posts: 335
    • View Profile
    • Email
Re: 1.5.2: Custom properties disapear
« Reply #1 on: 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.

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: 1.5.2: Custom properties disapear
« Reply #2 on: August 24, 2009, 06:38:14 pm »
This will be fixed for next version.

Thanks.

claudio

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: 1.5.2: Custom properties disapear
« Reply #3 on: 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.

claudio

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: 1.5.2: Custom properties disapear
« Reply #4 on: 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.