diff --git a/locales/ca/LC_MESSAGES/volto.po b/locales/ca/LC_MESSAGES/volto.po index d204173163..625c766b1e 100644 --- a/locales/ca/LC_MESSAGES/volto.po +++ b/locales/ca/LC_MESSAGES/volto.po @@ -2788,6 +2788,11 @@ msgstr "Desa" msgid "Saved" msgstr "" +#: components/manage/Contents/ContentsItem +# defaultMessage: Scheduled +msgid "Scheduled" +msgstr "" + #: components/manage/Controlpanels/ContentTypesActions # defaultMessage: Schema msgid "Schema" diff --git a/locales/de/LC_MESSAGES/volto.po b/locales/de/LC_MESSAGES/volto.po index 63169c89a6..4757587b24 100644 --- a/locales/de/LC_MESSAGES/volto.po +++ b/locales/de/LC_MESSAGES/volto.po @@ -2785,6 +2785,11 @@ msgstr "Wiederkehrende Einstellung speichern" msgid "Saved" msgstr "Gespeichert" +#: components/manage/Contents/ContentsItem +# defaultMessage: Scheduled +msgid "Scheduled" +msgstr "" + #: components/manage/Controlpanels/ContentTypesActions # defaultMessage: Schema msgid "Schema" diff --git a/locales/en/LC_MESSAGES/volto.po b/locales/en/LC_MESSAGES/volto.po index 40dc8bc6b1..edd25e1eb3 100644 --- a/locales/en/LC_MESSAGES/volto.po +++ b/locales/en/LC_MESSAGES/volto.po @@ -2779,6 +2779,11 @@ msgstr "" msgid "Saved" msgstr "" +#: components/manage/Contents/ContentsItem +# defaultMessage: Scheduled +msgid "Scheduled" +msgstr "" + #: components/manage/Controlpanels/ContentTypesActions # defaultMessage: Schema msgid "Schema" diff --git a/locales/es/LC_MESSAGES/volto.po b/locales/es/LC_MESSAGES/volto.po index 076b32ae41..12afd29436 100644 --- a/locales/es/LC_MESSAGES/volto.po +++ b/locales/es/LC_MESSAGES/volto.po @@ -2790,6 +2790,11 @@ msgstr "Guardar repetición" msgid "Saved" msgstr "Guardado" +#: components/manage/Contents/ContentsItem +# defaultMessage: Scheduled +msgid "Scheduled" +msgstr "" + #: components/manage/Controlpanels/ContentTypesActions # defaultMessage: Schema msgid "Schema" diff --git a/locales/eu/LC_MESSAGES/volto.po b/locales/eu/LC_MESSAGES/volto.po index fc08930c3d..5bc6693137 100644 --- a/locales/eu/LC_MESSAGES/volto.po +++ b/locales/eu/LC_MESSAGES/volto.po @@ -2786,6 +2786,11 @@ msgstr "Gorde errepikapena" msgid "Saved" msgstr "Gordeta" +#: components/manage/Contents/ContentsItem +# defaultMessage: Scheduled +msgid "Scheduled" +msgstr "" + #: components/manage/Controlpanels/ContentTypesActions # defaultMessage: Schema msgid "Schema" diff --git a/locales/fr/LC_MESSAGES/volto.po b/locales/fr/LC_MESSAGES/volto.po index 786de2a3f2..f42de56945 100644 --- a/locales/fr/LC_MESSAGES/volto.po +++ b/locales/fr/LC_MESSAGES/volto.po @@ -2796,6 +2796,11 @@ msgstr "Sauvegarder" msgid "Saved" msgstr "Sauvegardé" +#: components/manage/Contents/ContentsItem +# defaultMessage: Scheduled +msgid "Scheduled" +msgstr "" + #: components/manage/Controlpanels/ContentTypesActions # defaultMessage: Schema msgid "Schema" diff --git a/locales/it/LC_MESSAGES/volto.po b/locales/it/LC_MESSAGES/volto.po index 8139c852c5..99ab3ff082 100644 --- a/locales/it/LC_MESSAGES/volto.po +++ b/locales/it/LC_MESSAGES/volto.po @@ -2779,6 +2779,11 @@ msgstr "Salva la ricorrenza" msgid "Saved" msgstr "" +#: components/manage/Contents/ContentsItem +# defaultMessage: Scheduled +msgid "Scheduled" +msgstr "" + #: components/manage/Controlpanels/ContentTypesActions # defaultMessage: Schema msgid "Schema" diff --git a/locales/ja/LC_MESSAGES/volto.po b/locales/ja/LC_MESSAGES/volto.po index 501902a95f..843c9871a8 100644 --- a/locales/ja/LC_MESSAGES/volto.po +++ b/locales/ja/LC_MESSAGES/volto.po @@ -2787,6 +2787,11 @@ msgstr "繰り返しを保存" msgid "Saved" msgstr "" +#: components/manage/Contents/ContentsItem +# defaultMessage: Scheduled +msgid "Scheduled" +msgstr "" + #: components/manage/Controlpanels/ContentTypesActions # defaultMessage: Schema msgid "Schema" diff --git a/locales/nl/LC_MESSAGES/volto.po b/locales/nl/LC_MESSAGES/volto.po index 53effede9e..8b1f364656 100644 --- a/locales/nl/LC_MESSAGES/volto.po +++ b/locales/nl/LC_MESSAGES/volto.po @@ -2786,6 +2786,11 @@ msgstr "Bewaar herhaling" msgid "Saved" msgstr "Bewaard" +#: components/manage/Contents/ContentsItem +# defaultMessage: Scheduled +msgid "Scheduled" +msgstr "" + #: components/manage/Controlpanels/ContentTypesActions # defaultMessage: Schema msgid "Schema" diff --git a/locales/pt/LC_MESSAGES/volto.po b/locales/pt/LC_MESSAGES/volto.po index 6f2139d880..f3ebb9d32b 100644 --- a/locales/pt/LC_MESSAGES/volto.po +++ b/locales/pt/LC_MESSAGES/volto.po @@ -2787,6 +2787,11 @@ msgstr "" msgid "Saved" msgstr "" +#: components/manage/Contents/ContentsItem +# defaultMessage: Scheduled +msgid "Scheduled" +msgstr "" + #: components/manage/Controlpanels/ContentTypesActions # defaultMessage: Schema msgid "Schema" diff --git a/locales/pt_BR/LC_MESSAGES/volto.po b/locales/pt_BR/LC_MESSAGES/volto.po index 0087d92fbe..59857e6d5f 100644 --- a/locales/pt_BR/LC_MESSAGES/volto.po +++ b/locales/pt_BR/LC_MESSAGES/volto.po @@ -2789,6 +2789,11 @@ msgstr "Salvar a recorrência" msgid "Saved" msgstr "Salvo" +#: components/manage/Contents/ContentsItem +# defaultMessage: Scheduled +msgid "Scheduled" +msgstr "" + #: components/manage/Controlpanels/ContentTypesActions # defaultMessage: Schema msgid "Schema" diff --git a/locales/ro/LC_MESSAGES/volto.po b/locales/ro/LC_MESSAGES/volto.po index 45e761e855..94590d9c56 100644 --- a/locales/ro/LC_MESSAGES/volto.po +++ b/locales/ro/LC_MESSAGES/volto.po @@ -2779,6 +2779,11 @@ msgstr "Salvați recurența" msgid "Saved" msgstr "" +#: components/manage/Contents/ContentsItem +# defaultMessage: Scheduled +msgid "Scheduled" +msgstr "" + #: components/manage/Controlpanels/ContentTypesActions # defaultMessage: Schema msgid "Schema" diff --git a/locales/volto.pot b/locales/volto.pot index 660ab3fe0f..78f517f406 100644 --- a/locales/volto.pot +++ b/locales/volto.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: Plone\n" -"POT-Creation-Date: 2023-04-05T10:12:20.363Z\n" +"POT-Creation-Date: 2023-05-15T07:04:19.612Z\n" "Last-Translator: Plone i18n \n" "Language-Team: Plone i18n \n" "MIME-Version: 1.0\n" @@ -2781,6 +2781,11 @@ msgstr "" msgid "Saved" msgstr "" +#: components/manage/Contents/ContentsItem +# defaultMessage: Scheduled +msgid "Scheduled" +msgstr "" + #: components/manage/Controlpanels/ContentTypesActions # defaultMessage: Schema msgid "Schema" diff --git a/locales/zh_CN/LC_MESSAGES/volto.po b/locales/zh_CN/LC_MESSAGES/volto.po index 3d436e9e67..4f3666a9c2 100644 --- a/locales/zh_CN/LC_MESSAGES/volto.po +++ b/locales/zh_CN/LC_MESSAGES/volto.po @@ -2785,6 +2785,11 @@ msgstr "" msgid "Saved" msgstr "已保存" +#: components/manage/Contents/ContentsItem +# defaultMessage: Scheduled +msgid "Scheduled" +msgstr "" + #: components/manage/Controlpanels/ContentTypesActions # defaultMessage: Schema msgid "Schema" diff --git a/news/4764.bugfix b/news/4764.bugfix new file mode 100644 index 0000000000..d3a223195b --- /dev/null +++ b/news/4764.bugfix @@ -0,0 +1 @@ +Fix bug where editors could not see their own content in the Contents view if it was expired or has a future effective date. @davisagli diff --git a/src/components/manage/Contents/Contents.jsx b/src/components/manage/Contents/Contents.jsx index 291ed46c62..6351295b47 100644 --- a/src/components/manage/Contents/Contents.jsx +++ b/src/components/manage/Contents/Contents.jsx @@ -1013,6 +1013,7 @@ class Contents extends Component { sort_order: this.state.sort_order, metadata_fields: '_all', b_size: 100000000, + show_inactive: true, ...(this.state.filter && { SearchableText: `${this.state.filter}*` }), }); } else { @@ -1024,6 +1025,7 @@ class Contents extends Component { ...(this.state.filter && { SearchableText: `${this.state.filter}*` }), b_size: this.state.pageSize, b_start: this.state.currentPage * this.state.pageSize, + show_inactive: true, }); } } diff --git a/src/components/manage/Contents/ContentsItem.jsx b/src/components/manage/Contents/ContentsItem.jsx index a0adba5d74..20a0277f9c 100644 --- a/src/components/manage/Contents/ContentsItem.jsx +++ b/src/components/manage/Contents/ContentsItem.jsx @@ -169,6 +169,12 @@ export const ContentsItemComponent = ({ )} + {item.EffectiveDate !== 'None' && + new Date(item.EffectiveDate).getTime() > new Date().getTime() && ( + + )} {map(indexes, (index) => (