Skip to content
Snippets Groups Projects
Commit 72457572 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

dev #39494 fix status index

parent eac4d7c7
Branches
Tags
3 merge requests!2334Master,!2131Dev#39494 1940 filtres de workflow dans listviewmode,!2126dev #39494 add status
Pipeline #1251 passed with stage
in 11 minutes and 57 seconds
......@@ -372,8 +372,7 @@ class ZendAfi_Controller_Action_Helper_ArticleListViewMode extends ZendAfi_Contr
$form->removeDisplayGroup('list_search_group');
return $form->addElement('select',
'status',
['multiOptions' => array_merge([0 => $this->_('Tous statuts')],
Class_Article::getKnownStatus()),
['multiOptions' => [0 => $this->_('Tous statuts')] + Class_Article::getKnownStatus(),
'value' => $this->getStatus()])
->addUniqDisplayGroup('list_search_group');
}
......
......@@ -450,6 +450,12 @@ class CmsControllerListModeSearchFormTest extends CmsControllerListModeTestCase
}
/** @test */
public function refusedStatusShouldBeOption5() {
$this->assertXPath('//form//select//option[@value="5"][@label="Refusé"]');
}
/** @test */
public function statusColumnShouldBePresent() {
$this->assertXPathContentContains('//th', 'Statut');
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment