remove old_column_source error

This commit is contained in:
drusepth 2021-11-19 13:46:53 -08:00
parent 980142ff3e
commit 02560bb0dc
2 changed files with 2 additions and 1 deletions

View File

@ -122,6 +122,7 @@ class ContentSerializer
# to link code, then looking up again later) but since this is just stopgap
# code to standardize links in views this should be fine for now.
if attribute_field.old_column_source.present?
# raise "wee"
self.raw_model.send(attribute_field.old_column_source).map { |page| "#{page.page_type}-#{page.id}" }
else
[]

View File

@ -18,7 +18,7 @@
prompt="Please select at least one page type for this field to link to"
class="autosave-closest-form-on-change"
>
<%=
<%=
options_for_select(
Rails.application.config.content_types[:all].map { |klass| [klass.name.pluralize, klass.name] },
field.migrated_from_legacy? \