Skip to content

Commit

Permalink
keep auto publish flag for digital package
Browse files Browse the repository at this point in the history
  • Loading branch information
marwoodandrew authored and petrjasek committed Oct 11, 2016
1 parent 9a0a443 commit fe34c83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions apps/publish/content/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,8 @@ def process_takes(self, updates_of_take_to_be_published, package, original_of_ta

metadata_tobe_copied = self.takes_package_service.fields_for_creating_take.copy()
metadata_tobe_copied.extend([PUBLISH_SCHEDULE, SCHEDULE_SETTINGS, 'byline', EMBARGO])
if 'auto_publish' in updates_of_take_to_be_published:
metadata_tobe_copied.extend(['auto_publish'])
updated_take = original_of_take_to_be_published.copy()
updated_take.update(updates_of_take_to_be_published)
metadata_from = updated_take
Expand Down
6 changes: 4 additions & 2 deletions features/auto_routing.feature
Original file line number Diff line number Diff line change
Expand Up @@ -970,10 +970,12 @@ Feature: Auto Routing
"""
{"_items": [
{
"headline": "ASIA:Samsung sells defence, petrochemical units", "type": "text"
"headline": "ASIA:Samsung sells defence, petrochemical units", "type": "text",
"auto_publish": true
},
{
"headline": "ASIA:Samsung sells defence, petrochemical units", "type": "composite"
"headline": "ASIA:Samsung sells defence, petrochemical units", "type": "composite",
"auto_publish": true
}
]}
"""
Expand Down

0 comments on commit fe34c83

Please sign in to comment.