Skip to content

Commit 2180e61

Browse files
Harry30897differentreality
authored andcommitted
Conference name repeated in revision_history on adding commercial
1 parent 57e596c commit 2180e61

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/views/admin/versions/_object_desc_and_link.html.haml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,12 @@
234234
= link_to_organization(version.conference_id)
235235
- else
236236
(Organization Deleted)
237+
- elsif version.item_type == 'Commercial'
238+
- commercial = current_or_last_object_state(version.item_type, version.item_id)
239+
- commercialable = current_or_last_object_state(commercial.commercialable_type, commercial.commercialable_id)
240+
- unless commercial.commercialable_type == 'Conference'
241+
in conference
242+
= link_to_conference(version.conference_id)
237243
- else
238244
in conference
239245
= link_to_conference(version.conference_id)

0 commit comments

Comments
 (0)