set series predecessor

if series move to another project or studio you can link the new series
to the existing one.
This commit is contained in:
Milan
2020-02-29 20:51:31 +01:00
parent 775ff5f761
commit eb2986e1da
6 changed files with 16 additions and 4 deletions

View File

@@ -74,6 +74,9 @@ msgstr "interne Kommentare"
msgid "template_podcast_url"
msgstr "Podcast URL"
msgid "template_predecessor_id"
msgstr "ID der Vorgänger-Serie"
msgid "template_archive_url"
msgstr "Archiv URL"

View File

@@ -77,6 +77,9 @@ msgstr "Podcast URL"
msgid "template_archive_url"
msgstr "Archive URL"
msgid "template_predecessor_id"
msgstr "Series Predecessor ID"
msgid "tab_schedule"
msgstr "Schedule"

View File

@@ -337,6 +337,7 @@ sub save_series {
$entry->{series_id} = $params->{series_id} || '';
$entry->{live} = $params->{live} || 0;
$entry->{count_episodes} = $params->{count_episodes} || 0;
$entry->{predecessor_id} = $params->{predecessor_id} // 0;
#$entry->{html_content} = Encode::decode( 'utf-8', $entry->{content} );
$entry->{html_content} = markup::creole_to_html( $entry->{content} );
@@ -1252,9 +1253,8 @@ sub check_params {
'id', 'project_id', 'studio_id', 'default_studio_id',
'user_id', 'new_series_id', 'series_id', 'schedule_id',
'exclude', 'show_hint_to_add_schedule', 'event_id', 'weekday',
'week_of_month', 'month', 'nextDay'
)
{
'week_of_month', 'month', 'nextDay', 'predecessor_id'
){
if ( ( defined $params->{$param} ) && ( $params->{$param} =~ /^\d+$/ ) ) {
$checked->{$param} = $params->{$param};
}

View File

@@ -151,6 +151,10 @@
<tr> <td class="label"><TMPL_VAR .loc.template_comments></td>
<td><textarea name="comment" class="animated" style="width:100%;" placeholder="<TMPL_VAR .loc.template_comments>"><TMPL_VAR comment></textarea></td></tr>
<!--<tr> <td class="label">studio</td> <td><TMPL_VAR studio></td></tr>-->
<tr> <td class="label"><TMPL_VAR .loc.template_predecessor_id></td>
<td><input name="predecessor_id" style="width:100%;" value="<TMPL_VAR predecessor_id>" placeholder="<TMPL_VAR .loc.template_predecessor_id>"></td></tr>
</table>
<div class="buttons">