[TASK] Database analyzer: Enable add tables and add fields 43/21943/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Fri, 5 Jul 2013 14:15:30 +0000 (16:15 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Fri, 5 Jul 2013 14:31:50 +0000 (16:31 +0200)
Enable the check boxes for 'add tables' and 'add fields' in the
database analyzer by default. Adding is not risky and can be
suggested automatically.

Resolves: #49705
Related: #49162
Releases: 6.2

Change-Id: Ib3069a135f4baedc2bebf59ed5c42a72937fb897
Reviewed-on: https://review.typo3.org/21943
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/install/Resources/Private/Partials/Action/Tool/ImportantActions/DatabaseAnalyzerData.html
typo3/sysext/install/Resources/Private/Partials/Action/Tool/ImportantActions/DatabaseAnalyzerSuggestion.html

index 69a93e9..7bb5556 100644 (file)
@@ -10,7 +10,8 @@
                        arguments="{
                                key: 'addTable',
                                label: 'Add tables',
-                               data: '{databaseAnalyzerSuggestion.addTable}'
+                               data: '{databaseAnalyzerSuggestion.addTable}',
+                               enabled: 1
                        }"
                />
        </f:if>
@@ -21,7 +22,8 @@
                        arguments="{
                                key: 'addField',
                                label: 'Add fields to tables',
-                               data: '{databaseAnalyzerSuggestion.addField}'
+                               data: '{databaseAnalyzerSuggestion.addField}',
+                               enabled: 1
                        }"
                />
        </f:if>
index 96e29d0..2e8ca37 100644 (file)
@@ -2,12 +2,23 @@
        <legend>{label}</legend>
        <ol>
                <li class="t3-install-form-label-after">
-                       <input type="checkbox" class="checkall" id="t3-install-{key}-checkbox">
+                       <input
+                               type="checkbox"
+                               class="checkall"
+                               id="t3-install-{key}-checkbox"
+                               {f:if(condition:'{enabled} == 1', then:' checked="checked"')}
+                       />
                        <label for="t3-install-{key}-checkbox">select/deselect all</label>
                </li>
                <f:for each="{data}" as="field">
                        <li class="t3-install-form-label-after">
-                               <input type="checkbox" id="t3-install-db-{field.hash}" name="install[values][{field.hash}]" value="1">
+                               <input
+                                       type="checkbox"
+                                       id="t3-install-db-{field.hash}"
+                                       name="install[values][{field.hash}]"
+                                       value="1"
+                                       {f:if(condition:'{enabled} == 1', then:' checked="checked"')}
+                               />
                                <label for="t3-install-db-{field.hash}">
                                        {field.statement}
                                        <f:if condition="{field.current}">