User tests: Successful: Unsuccessful:
Pull Request for Issue #21707 . (second part)
This PR let the multilang sample data creating a new Workflow to ensure, that the articles are published
Status | New | ⇒ | Pending |
Category | ⇒ | Administration Language & Strings Front End Plugins |
Labels |
Added:
?
?
|
I have tested this item
In fact (not taking into account the transitions which should be the same as Joomla default imho), is missing the article set in _workflows_associations.
In my POC I had added in private function addArticle($itemLanguage, $categoryId)
+ $query->clear()
+ ->insert($db->qn('#__workflow_associations'))
+ ->values($newId . ', 2,' . $db->quote('com_content'));
+
+ $db->setQuery($query);
+
+ try
+ {
+ $db->execute();
+ }
+ catch (JDatabaseExceptionExecuting $e)
+ {
+ $this->setError($e->getMessage());
+
return false;
}
In this case with this new workflow, the value has to change in
->values($newId . ', 2,' . $db->quote('com_content'));
if I do not mistake.
I do not see the reason to create a specific workflow per language btw.
Call it what you want but it can be generic for all content languages, imho.
The last commit did not go through last night..... I recommited it, should be fixed now.
This corrects now the status of articles. Tks.
Remains the fact that the new workflow do not have the same stages than joomla default and that it looks overkill to create a workflow per language.
Simple is better. Call it "Sample Multilingual Workflow" and out the foreach. :)
I have tested this item
Tested successfully with de-DE and en-GB. All data found as described.
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
Ready to Commit after two successful tests.
Please be nice to drone. Param $itemlanguage is no more. :)
FILE: ...github.com/joomla/joomla-cms/plugins/sampledata/multilang/multilang.php
--------------------------------------------------------------------------------
FOUND 1 ERROR(S) AFFECTING 1 LINE(S)
--------------------------------------------------------------------------------
987 | ERROR | Superfluous doc comment at position 1
@bembelimen
Please correct drone
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-09-10 13:52:45 |
Closed_By | ⇒ | bembelimen |
@bembelimen Why was this closed?
Can you update this please
PLG_SAMPLEDATA_MULTILANG_STEP6_SUCCESS