SOLVED: Element view on new record creation

Status
Not open for further replies.

dimoss

Well-Known Member
Joomla 4.2.9
Fabrik #4 Gamma 3
Cassiopeia
vanilla J & F installation

Hi,

In Fabrik 3 a user can still see (but not able to select a dropdown value) when the dropdown element has set with a different access level that the user has. Upon form submission the value is recorded in the db.

In Fabrik 4 with the same settings on the dropdown element the value is empty and it is not recorded in the db.

Below examples:

Fabrik 4

Element:
upload_2023-5-6_12-19-59.png

Settings:
upload_2023-5-6_12-16-30.png


Fabrik 3

Element:
upload_2023-5-6_12-19-13.png

Settings:
upload_2023-5-6_12-17-16.png


In both cases the user access level is 'Registered' and doesn't belong to the group of DB Managers who have 'DB_Manager access.
Do I miss something?

Thanks in advance for your help.
 
Hmm...
I can replicate, but it's the same with F3 (php8, latest GitHub).
What are your F3 versions (Fabrik and php)?
 
Ok, it's no dbjoin issue but element default in general.
I assume one more of 0!= '' in php8 somewhere in elements.
 
So, in components\com_fabrik\models\element.php line 1528 do

if (!$this->isEditable() && (int)FArrayHelper::getValue($data, 'rowid') != 0)
 
So, in components\com_fabrik\models\element.php line 1528 do

if (!$this->isEditable() && (int)FArrayHelper::getValue($data, 'rowid') != 0)

Unfortunately the issue remains. The user cannot see the value as readonly on record creation and as a result the value is empty and not recorded on db. On the contrary the value is visible as readonly on edit an existing record.
The dropdown has been set as TEXT field in the db.
 
Last edited:
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top