JoomlaPolska / jezyk-J4

Język polski dla Joomla 4
GNU General Public License v2.0
3 stars 5 forks source link

[4.3] Fix check create article menu item with specific category #356

Closed joomlapl-bot closed 12 months ago

joomlapl-bot commented 1 year ago

PR w związku ze zmianą oryginału https://github.com/joomla/joomla-cms/pull/40637 Poniżej zmiany w oryginale:

Click to expand the diff! ```diff diff --git a/administrator/language/en-GB/com_content.ini b/administrator/language/en-GB/com_content.ini index aa6df5a8776b..730c0745ca3d 100644 --- a/administrator/language/en-GB/com_content.ini +++ b/administrator/language/en-GB/com_content.ini @@ -28,7 +28,7 @@ COM_CONTENT_CREATE_ARTICLE_CANCEL_REDIRECT_MENU_LABEL="Cancel Redirect" COM_CONTENT_CREATE_ARTICLE_CATEGORY_LABEL="Specific Category" COM_CONTENT_CREATE_ARTICLE_CUSTOM_CANCEL_REDIRECT_DESC="If set to 'Yes', you can set a redirection page, distinct from above 'Submission/Cancel Redirect', to redirect to when user Cancels article submission.
If set to 'No', when user Cancels article submission, the user is redirected to the above 'Submission/Cancel Redirect' page." COM_CONTENT_CREATE_ARTICLE_CUSTOM_CANCEL_REDIRECT_LABEL="Custom Redirect on Cancel" -COM_CONTENT_CREATE_ARTICLE_ERROR="When default category is enabled, a category should be selected." +COM_CONTENT_CREATE_ARTICLE_ERROR="When specific category is enabled, a category should be selected." COM_CONTENT_CREATE_ARTICLE_REDIRECTMENU_DESC="Select the page the user will be redirected to after a successful article submission and after cancel (if not set differently below). The default is to redirect to the home page." COM_CONTENT_CREATE_ARTICLE_REDIRECTMENU_LABEL="Submission/Cancel Redirect" COM_CONTENT_DASHBOARD_TITLE="Content Dashboard" diff --git a/plugins/content/joomla/joomla.php b/plugins/content/joomla/joomla.php index ba4deb8f58e0..4b4d0c5c132f 100644 --- a/plugins/content/joomla/joomla.php +++ b/plugins/content/joomla/joomla.php @@ -593,11 +593,6 @@ public function onContentChangeState($context, $pks, $value) */ private function checkMenuItemBeforeSave($context, $table, $isNew, $data) { - // Check we are handling the frontend edit form. - if ($context === 'com_menus.item') { - return true; - } - // Special case for Create article menu item if ($table->link !== 'index.php?option=com_content&view=form&layout=edit') { return true; ```