Bug in custom fields #671
Replies: 2 comments
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
if you have more then one custom field with the same field_type "mycusotmfield" then JCB will use the first it gets to set the PHP. Now since we often have the issue that we want to force one to be the PRIME/MAIN field which JCB will use we added a switch called "Prime PHP" Selecting that option in custom fields, and setting it to 1 will force that field to be used as the PRIME, unless you also have the same switch set on the other field with the same field_type. So only one of these fields should be set to prime, and then that fields php will be used instead of any of the other fields that may have different names, but the same "custom" field_type. This is what the prime_php switch description says:
|
Beta Was this translation helpful? Give feedback.
-
Hi
I was created an custom field with some PHP code in it. (mycusotmfield)
after compiling and installing the component when I want to change php part of field , no change is applied
and changes just applied when I change types value field in property of custom field (mycustomfieldone)
its ok but when I change type of field to the first type, php field that writes in admin/component/my_component/models/fields/mycustomfield.php backs to the first PHP that I wrote in first step
This problem persists even with the deletion of mycustomfield.php and mycustomfieldone.php
Beta Was this translation helpful? Give feedback.
All reactions