hissy / addon_multiple_express_entry_selector Goto Github PK
View Code? Open in Web Editor NEWAdd a new attribute type to select one or more express entries
Add a new attribute type to select one or more express entries
When I try to Delete a Multiple Express Entry Attribute I get:
An exception occurred while executing 'DELETE FROM AttributeKeys WHERE akID = ?' with params [99]: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (
concrete5.
atExpressSelectedEntries, CONSTRAINT
FK_C9D404BBA2A82A5D FOREIGN KEY (
avID) REFERENCES
atExpress (
avID))
And I really see no way to fix this for myself so far... :/ this is seriously breaking
This is effectively a bug report for -> concretecms/concretecms#5718 (comment)
Copied text from that:
So I've tried using the Express Multi-Select, and in my dev testing (concrete5 8.5.4) When I add the multi-select addon manually that @hissy developed, I cannot use Single and Multi-Select attributes on the same Express Object, which is a problem for me.
Example scenario:
First Object, is an Event Location (hotel)
Second Object is an Event Location set of Sub-Sections (multiple meeting rooms, halls, etc)
Second Object is Events
Naturally, the Event Location associates with multiple Sub-Locations in a One-to-Many relationship. That works.
Then I create an Event Location, and two Event Location Sub-Sections. Associate the two Sub-Sections with the test Event Location, and that works.
Then I create the Event Object in such a way that it has two associations:
-Event Object associated with Event Location Object, in (Event) Many-To-One (Location) relationship
-Event Object associated with Event Location Sub-Sections (Event) Many-To-Many (Location Sub-Sections) relationship
Then when I define the Event Object I have Name Attribute, Single Express Select (Location) and Multi Express Select (Location Sub-Sections).
I then make a form with Name Attribute, Single Express Select, and Multi-Express Select.
I can enter the Name for the event, but Single Express Select presents NO options (when I know a location exists) BUT Multi-Express Select does work.
I think the issue is when using a Single Express Select AND Multi-Express Select on the same object, disabling the Single Express Select (and I really do need both to work for many reasons!).
Sorry, bit of a word-ful explanation :/
Normal attributes can be set using setAttribute('attribute_handle', attribute_value). However trying to set an attribute using a multi - select express attribute does not work as desired in this way. For example I have a user attribute which is an express multi select which holds a list of facilities a user is assigned to manage. I want to import a csv containing new users and assign their facilities based on an array in one field of the csv. But using setAttribute() won't allow this with the express multi select addon.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.