Missing Custom Fields Value since 3.9.5

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
dianimation
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sat Sep 16, 2017 12:43 pm

Missing Custom Fields Value since 3.9.5

Post by dianimation » Sat May 18, 2019 7:49 am

Hi all!

I'm using Joomlas Custom Fields in my Component for a long time, but since 3.9.5 there seems to be a problem with displaying the value of custom list elements. So far it worked like this:

implode(', ', $item->jcFields['myField']->rawvalue)
displayed the VALUE of the selected option

$item->jcFields['myField']->value
displayed the TEXT of the selected option
(the label or key of the option, not the value!)

In the current Joomla-Version only rawvalue works - and value stays always empty.
Can someone explain this? Is this a bug?
Or does someone have the same problem and knows a workaround?

Thanks in advance! Diana

User avatar
paulala
Joomla! Explorer
Joomla! Explorer
Posts: 295
Joined: Sat Oct 30, 2010 12:32 pm
Location: Scotland
Contact:

Re: Missing Custom Fields Value since 3.9.5

Post by paulala » Sat May 18, 2019 8:08 am

Do you see any differences between a var dump before 3.9.5 and after?
Warm Regards,
Paula Livingstone, Skydiving Instructor and Network Security Consultant
https://paulalivingstone.com
http://rustyice.co.uk

dianimation
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sat Sep 16, 2017 12:43 pm

Re: Missing Custom Fields Value since 3.9.5

Post by dianimation » Sat May 18, 2019 9:58 am

I can see a difference between 3.9.2 and 3.9.5.
(I was developing on the 3.9.2-system and updated it afterwards to 3.9.5)

Before updating the output of values was as expected (and described in the documentation https://docs.joomla.org/J3.x:Adding_cus ... errides/en), now in the newer version the values are missing.

Other array-data (like ->title, ->label, ->name etc.) is still working fine.


Post Reply

Return to “Extensions for Joomla! 3.x”