Skip to content

Conversation

@bembelimen
Copy link
Owner

Pull Request for Issue # .

Summary of Changes

Testing Instructions

Expected result

Actual result

Documentation Changes Required

bembelimen and others added 10 commits March 14, 2020 17:36
…orkflow-v3-content

# Conflicts:
#	administrator/components/com_content/src/Model/ArticleModel.php
…orkflow-v3-content

# Conflicts:
#	administrator/components/com_content/src/View/Featured/HtmlView.php
#	administrator/components/com_content/tmpl/articles/default.php
…orkflow-v3-content

# Conflicts:
#	administrator/components/com_content/src/Model/ArticleModel.php
#	administrator/components/com_content/tmpl/articles/default.php
#	administrator/components/com_content/tmpl/featured/default.php
#	libraries/src/Workflow/Workflow.php
@bembelimen bembelimen merged commit be6b633 into workflow-v3 Apr 21, 2020
@bembelimen bembelimen deleted the workflow-v3-content branch April 21, 2020 00:29
public function batchWorkflowStage(int $value, array $pks, array $contexts)
{
$user = Factory::getApplication()->getIdentity();
/** @var $workflow */

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't there be the class name?

<?php echo LayoutHelper::render('joomla.html.batch.tag', []); ?>
</div>
</div>
<?php if ($user->authorise('core.admin', 'com_content')) : ?>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's the wrong approach, you should ask the service if the workflow is enabled for this view. Also as example for other developer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants