smallrecords icon indicating copy to clipboard operation
smallrecords copied to clipboard

Error when save attribute's value

Open exaline-ru opened this issue 2 years ago • 9 comments

An error occurred when saving data in the attributes (October CMS v.2.2.10, SmallRecords v.3.14.0)

Call to a member function fill() on array" on line 87 of /public_html/modules/backend/traits/FormModelSaver.php

  • Create and view saved data in the attributes with no problem.

exaline-ru avatar Mar 15 '22 15:03 exaline-ru

Hi,

I do not use OC2 yet so can't test it right now - but add this to my todo list!

Thanks for issue.

jan-vince avatar Mar 16 '22 08:03 jan-vince

Do you have a plan to upgrade to OC2?

exaline-ru avatar Mar 16 '22 08:03 exaline-ru

Sure - when I have a time :)

jan-vince avatar Mar 16 '22 09:03 jan-vince

Thank you very much for the great plugin! I'm really looking forward to the update.

exaline-ru avatar Mar 16 '22 09:03 exaline-ru

In my opinion, you can watch this plugin (with a similar model), since it works in OC2

/plugins/ginopane/blogtaxonomy/models/PostType.php

exaline-ru avatar Mar 16 '22 09:03 exaline-ru

Hi. I am experiencing the same issue while trying to save the attributes - OC2. Any solution on this? Thank you in advance!

afdstudio avatar Jun 14 '22 17:06 afdstudio

Any solution on this?

It still doesn't work! I'm using Notes now instead of attributes

exaline-ru avatar Jun 14 '22 17:06 exaline-ru

Hi again!

Think this issue was fixed on backend. I can now add attributes. However, displaying attributes is not working. This code didn't work:

{% for attribute in record.attributes %}

{{ attribute.name }} : {{ attribute.value }}

{% endfor %}

Any suggestions to workaround with this? Thank you!

afdstudio avatar Jun 20 '22 14:06 afdstudio

Try to dump values of record object with Twig Dump or other plugin.

Or you can try to use original RecordDetail component to render all record's data.

jan-vince avatar Jun 21 '22 15:06 jan-vince