JoomlaPolska / jezyk-J4

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

[4.3] Guided Tours remove broken code for creation of basic step #390

Closed joomlapl-bot closed 10 months ago

joomlapl-bot commented 1 year ago

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

Click to expand the diff! ```diff diff --git a/administrator/components/com_guidedtours/src/Model/TourModel.php b/administrator/components/com_guidedtours/src/Model/TourModel.php index bc23ae4f008cf..71acf8884af22 100644 --- a/administrator/components/com_guidedtours/src/Model/TourModel.php +++ b/administrator/components/com_guidedtours/src/Model/TourModel.php @@ -77,24 +77,7 @@ public function save($data) $this->setStepsLanguage($id, $lang); - $result = parent::save($data); - - // Create default step for new tour - if ($result && $input->getCmd('task') !== 'save2copy' && $this->getState($this->getName() . '.new')) { - $tourId = (int) $this->getState($this->getName() . '.id'); - - $table = $this->getTable('Step'); - - $table->id = 0; - $table->title = 'COM_GUIDEDTOURS_BASIC_STEP'; - $table->description = ''; - $table->tour_id = $tourId; - $table->published = 1; - - $table->store(); - } - - return $result; + return parent::save($data); } /** diff --git a/administrator/language/en-GB/com_guidedtours.ini b/administrator/language/en-GB/com_guidedtours.ini index 05df9d701ae7d..bc98eef4c2d9a 100644 --- a/administrator/language/en-GB/com_guidedtours.ini +++ b/administrator/language/en-GB/com_guidedtours.ini @@ -4,6 +4,7 @@ ; Note : All ini files need to be saved as UTF-8 COM_GUIDEDTOURS="Guided Tours" +; Deprecated, will be removed with 5.0 COM_GUIDEDTOURS_BASIC_STEP="Basic Step" COM_GUIDEDTOURS_CONFIGURATION="Guided Tours: Options" COM_GUIDEDTOURS_DESCRIPTION="Description" ```