UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
It is currently off working hours and most of us aren't around

Rest assured that we will get back to you as soon as the day starts tomorrow!
  Support is offline

setFieldValue with arrays

Anthony Glover · ·
6:40 PM Tuesday, 27 May 2014
None
I'm trying to use the function setFieldValue from \includes\user\user.php line 1482

It works fine for setting single values, however some fields require multiple pieces of data, be it checkboxes, addresses, name etc.

I've tried running a bunch of data through it in what I thought would be an acceptable format (associated array, normal array, object) as it seems to be built to handle them.

However no matter what I do, it's being rejected! If the support team could tell me the specific format in which this function accepts array or object data, and give and example for the name field it would be very helpful.

Name data is in the following format
$value->first = 'Jon';
$value->middle = 'Alexander';
$value->last = 'Doe;'
$name-> 'Jon Alexander Doe';


update -
This function also fails to update if the value was null to start with! Even for single values.
The replies under this section are restricted to logged in users or users with an active subscription with us