#1 Developer Help » Issue editing saved but not published modules » March 12, 2013 7:14pm

designbyblake
Replies: 3

When we try to edit a module entry that is saved but not approved we get the following error (I deleted out the server path before core):


Warning: include(/core/admin/auto-modules/forms/p3.php): failed to open stream: No such file or directory in /core/admin/auto-modules/form.php on line 17 Warning: include(): Failed opening '/core/admin/auto-modules/forms/p3.php' for inclusion (include_path='.:') in /core/admin/auto-modules/form.php on line 17


I tested this locally and got the same error. However if I approve the change in the dashboard, which publishes it, I am able to edit changes. Any idea what I'm doing wrong?

#2 Re: Bug Reports » Multiple Many to Many fields don't like the edit page » February 19, 2013 9:35pm

I'm using the field type in a module.


It looks like select.customControl.add function in deleteItem is what is causing the issue. The error is:
"Uncaught TypeError: Cannot read property 'length' of undefined" in main.js on line 367 which is "this.Element.options[this.Element.options.length] = op;" in the code.


I've commented out the line with select.customControl.add function for now. So now the delete works it just doesn't add the option back into the custom select (or hidden select) until you save and go back to the page.


For us now this isn't a huge issue as I don't expect to be deleting too much.

#3 Re: Bug Reports » Multiple Many to Many fields don't like the edit page » February 17, 2013 6:04pm

Thanks Ben, the field works great. There is a small bug where you can't delete an item out of the array. The dialog comes up but the delete button does nothing. For me at the moment this is not a big deal.

#4 Re: Bug Reports » Multiple Many to Many fields don't like the edit page » February 11, 2013 11:28pm

I only have everything local at the moment but maybe we can arrange something where I swing up to the office towards the end of a work day. I work a few blocks from your office.

#5 Re: Bug Reports » Multiple Many to Many fields don't like the edit page » February 11, 2013 10:43pm

Actually I had nothing tagged yet, though I did have tagging turned on for the Events module. I turned it off to see if that would change anything, it did not.


If Ben wants to share the One to Many field type it would be greatly appreciated. For the Refresh site it would come in handy but overall I can see a lot of potential for its use. Regardless, the work you all have done with Big Tree is very impressive for this early of a release.

#6 Bug Reports » Multiple Many to Many fields don't like the edit page » February 11, 2013 6:46pm

designbyblake
Replies: 9

Hi all,


I'm in the process of checking out BigTree and my initial impression is very positive. After seeing Tracey's presentation at Refresh Baltimore we thought it would be only fitting to build the Refresh Baltimore website in Big Tree.


While building the site I've created 3 modules, Events, Speakers & Locations. I've created 2 Many to Many fields in the Events module, one for Locations and one for Speakers. When I add a new event everything works perfectly (writes to the proper join tables) however when I go back to edit an event only the first Many to Many field is displayed, in this case the Locations relationship.


Since there is no Speakers field being displayed when you save the Event the Speaker is removed from the join table. At this point if you go back to edit the same event the Locations Many to Many field displays and so does the Speakers Many to Many field which of course is now empty. I guess my bug is only 1 filled out many to many fields shows at a time.


Also do you have any plans on making a One to Many field or does that need to be custom? I only need one location per event.


thanks,


Dan

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.