6 years ago
2
Topic

Hello everybody 

I have a message 

Notice: Undefined property: stdClass::$divider in /plugins/cck_field/select_dynamic/select_dynamic.php on line 776

when I use Select Dinamyc field with Multiply option. I dumped $field object and found that there is no divider property, also as rows for example. What I do wrong?

Get a Book for SEBLOD
4229 Posts
Kadministrator
6 years ago
1
Level 1

As $divider is not used anywhere you can safely remove code causing this:

if ( $field->bool3 ) {
   $divider   =  ( $field->divider != '' ) ? $field->divider : ',';
}
6 years ago
0
Level 2

Hi, Klas!

I'm not sure - I see this field in edit.php and I see it in field settings if I choose Multiply mode. More then - $bool3 (multiply mode) works normally as $this->item->bool3 in edit.php, but $divider represented as $this->item->divider in edit.php doesn't work. Visually they are the same, but $bool3 works and $divider doesn't. Maybe something wrong?

Get a Book for SEBLOD