matthewkris / mibrew-issues

This is an empty repo used to host the public MIBrew issue tracker.
https://www.mibrewsupply.com/recipe
0 stars 0 forks source link

Adding custom ingredients in the substitute menu doesn't work. #64

Open jawsdaws opened 3 years ago

jawsdaws commented 3 years ago

So this appears to be reproducible every time. Edit a recipe, click substitute, and type in random letters until the "Click to add custom..." appears. Clicking does nothing. It appears to effect fermentables, hops, and yeast.

jawsdaws commented 3 years ago

I'm gonna try to fix this. :-)

jawsdaws commented 3 years ago

So this is a much bigger task than I thought. The base of the problem is that the case for "sub-modal" in never handled in the switch case near the bottom of /html/recipe/application/views/recipe/edit/main.php. Because of the way "sub-modal" handles every type, and the other modals all only handle their own type, I'm not sure how to proceed. I think its going to require a new file for each sub type in /html/recipe/application/views/recipe/edit/modal. Maybe even splitting up sub.js so they only handle each type. IDK at this point.