curationexperts / trove

Digital Image Library based on Tufts repository models
0 stars 2 forks source link

Templates don't save in MIRA when using tufts_models #86

Closed bmaddy closed 10 years ago

bmaddy commented 10 years ago

Create a new template that has a Template Name and save it. It errors with Template Name can't be blank.

mark-dce commented 10 years ago

FYI - if I checkout the tufts_models branch, I can run the console and create new templates from the console. Once I've created them in the console, I can run the application and edit them just fine. So it does look like something specific to how how the form is passing the template_name back to the object on create.

bmaddy commented 10 years ago

So here's the problem, hydra-editor restricts what attributes can be updated here: https://github.com/projecthydra-labs/hydra-editor/blob/master/app/controllers/concerns/records_controller_behavior.rb#L79

This uses TuftsTemplate.terms_for_editing. The question is, which do we update in TuftsTemplate, terms_for_editing, terms_for_display, and/or `admin_display_fields``.

I'll figure out which to change tomorrow.

bmaddy commented 10 years ago

Fixed by https://github.com/curationexperts/mira/pull/281