View Issue Details

IDProjectCategoryView StatusLast Update
0007229module Visual CMSmodule Visual CMS - subpublic2021-04-15 14:29
Reporter[email protected] 
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
Product Version3.3.2 
Target VersionFixed in Version 
Summary0007229: Inactive content cannot be activated
DescriptionIf you open the Visual CMS editor and load an inactive content element before the initial AJAX request "fnc=searchContents&all=1" has been completed, the value of the active-checkbox will be changed from "1" to "0" via Javascript. If you submit the form afterwards, the oxactive parameter will always be "0", independently if the checkbox is checked or not.
Steps To Reproduce- Open VCMS editor in the OXID admin area
- Perform the next steps before the request "fnc=searchContents&all=1" has finished (check the network status of the AJAX requests)
-- Paste an ident of an existing and inactive content element into the search field immediately
-- Click on the content element in the suggest dropdown to load it into the editor
-- After loading the content before the request "fnc=searchContents&all=1" has finished, the DOM element looks like this: [html]input type="checkbox" name="editval[oxcontents__oxactive]" id="elm_edit_active" value="0">[/html]
Additional InformationTo fix the problem in our projects in a quick way, we implemented the following extension:
class VisualCmsAdmin extends VisualCmsAdmin_parent
{
    public function searchContents()
    {
        if (!isset($_GET['definition'])) {
            $_GET['definition'] = '1';
        }
        return parent::searchContents();
    }
}
TagsNo tags attached.

Activities

QA

2021-04-15 14:29

administrator   ~0013425

-MK