Unique Channel Fields
ExpressionEngine 2, ExpressionEngine 3
Back to this add-on's main page
View Other Add-ons From Simon Andersohn
Error with Channel Form
Feature Request
jphansen
|
Posted: 10 March 2017 03:44 PM |
|
|
|
Hi Simon,
Thanks for the free software. Works great within the CP. I’m trying to use it in a Channel Form form, and getting the error:
—
A PHP Error was encountered
Severity: Notice
Message: Undefined property: EE::$api_channel_entries
Filename: unique_channel_fields/ext.unique_channel_fields.php
Line Number: 321
Fatal error: Call to a member function _set_error() on a non-object in /www/facs/system/expressionengine/third_party/unique_channel_fields/ext.unique_channel_fields.php on line 321
—
Any chance to make this Channel Form compatible?
Best Wishes,
Jimmy
|
|
|
Sy
|
Posted: 11 March 2017 01:21 PM |
# 1
|
|
Developer
|
Hi Jimmy,
I have just updated this. Could you download a fresh copy and let me know if this works for you:
https://github.com/ignetic/ee-unique-channel-fields/archive/master.zip
Many thanks
Simon
|
|
|
jphansen
|
Posted: 13 March 2017 10:00 AM |
# 2
|
|
|
Hi Simon,
Thanks for updating. I tried this and now it’s allowing duplicate values for a field I specified should be unique, not throwing any error at all.
Best Wishes,
Jimmy
|
|
|
Sy
|
Posted: 13 March 2017 03:17 PM |
# 3
|
|
Developer
|
I have had another look at this and added the required hook for channel forms. All tested now but please download another copy and let me know if this works for you.
Thanks
Simon
|
|
|
jphansen
|
Posted: 13 March 2017 03:40 PM |
# 4
|
|
|
Wonderful, works!
Thanks, Simon.
|
|
|