Skip to content

Commit c275aca

Browse files
committed
Merge branch 'release/2.10.2' into support/2.10.0
2 parents 11a7b3f + 8bd8d6a commit c275aca

File tree

6 files changed

+74
-3
lines changed

6 files changed

+74
-3
lines changed

CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,40 @@
1+
## [2.10.2](https://github.com/pluginsglpi/formcreator/compare/v2.10.1...v2.10.2) (2020-09-07)
2+
3+
4+
### Bug Fixes
5+
6+
* **condition:** duplicated JS function ([acbe985](https://github.com/pluginsglpi/formcreator/commit/acbe985bf3ddd710ddeacd4c30c7f47597f155b2))
7+
* **confition:** hide garbage conditions ([8810cd6](https://github.com/pluginsglpi/formcreator/commit/8810cd68186414902d5322ff938dff271a6ea129))
8+
* **filefield:** broken mandatory check ([f70a847](https://github.com/pluginsglpi/formcreator/commit/f70a84725da99d14980a69e9af7c258bf406dafd))
9+
* **form:** bad session var type when using anonymous form ([9d43e80](https://github.com/pluginsglpi/formcreator/commit/9d43e80f97c9aa3d4575e31771b3e1cb6bbda838))
10+
* **form:** doubling starcauses SQL error ([41101ca](https://github.com/pluginsglpi/formcreator/commit/41101ca151c9e21e9205a1ba8e63ed6dd1d2f9b7))
11+
* **form:** error in displayed form URL ([d21c5b3](https://github.com/pluginsglpi/formcreator/commit/d21c5b3a4edaa1eebe4f81de82a78ea5a3db4f79))
12+
* **form:** forbid clone massive action in GLPI 9.5 ([2947d6f](https://github.com/pluginsglpi/formcreator/commit/2947d6f683dae27f854bdd1500322f281c8ea7e3))
13+
* **form:** prevent SQL errors, remove natural language search ([2eabddf](https://github.com/pluginsglpi/formcreator/commit/2eabddf5e93e777c2051adb741a3a9cd5c025fee))
14+
* **form_profile:** HTML form name mismatch ([f201f37](https://github.com/pluginsglpi/formcreator/commit/f201f37a5a9635fdd163955356ed5eb49be1a6bd))
15+
* **form_profile:** not rendered selection of profiles ([1c0d27d](https://github.com/pluginsglpi/formcreator/commit/1c0d27d502fa358589013230890265b559328710))
16+
* **formanswer:** do not render section title if invisible ([6bb6be3](https://github.com/pluginsglpi/formcreator/commit/6bb6be33c782ea6668875a7251d1ba0f38f06bd7))
17+
* **formanswer:** missing validation checks when user updates a refused form ([788ac89](https://github.com/pluginsglpi/formcreator/commit/788ac89cf06e6fbc53ff8d4357514eae054b5275))
18+
* **issue:** adjust ticket status n automatic action ([397a912](https://github.com/pluginsglpi/formcreator/commit/397a9127acd05421eed3513737085fc32d4e6c6c))
19+
* **issue:** repopulate table on upgrade ([90727ae](https://github.com/pluginsglpi/formcreator/commit/90727ae21ed3986c3c84a477bae0273a129872e7))
20+
* **issue:** status conversion for ticket ([9aae13d](https://github.com/pluginsglpi/formcreator/commit/9aae13d08a32b8d65511f8b22e15482791cce458))
21+
* **issue:** syncissues drops most requesters ([1fa10c8](https://github.com/pluginsglpi/formcreator/commit/1fa10c82774b5beadd0e252e2d0c796f768eee4f))
22+
* **issue:** validated ticket status ([24dacd2](https://github.com/pluginsglpi/formcreator/commit/24dacd2a071a64be6590480bca9d696eabab8750))
23+
* **question:** parameters duplicated twice ([e6889cc](https://github.com/pluginsglpi/formcreator/commit/e6889cc0768a0f90743cab9523da927051623e12))
24+
* **section:** order of sections not respected on import ([e9bf84b](https://github.com/pluginsglpi/formcreator/commit/e9bf84b7c507f6dbfb15b1a095143bbac1bc23aa))
25+
* **target:** load all tag questions ([bbcfc8a](https://github.com/pluginsglpi/formcreator/commit/bbcfc8a5015682ea516c40255788448f3a95a6a0))
26+
* **targetchange:** do not geenrate HTML for simple text fields ([2d7a5f6](https://github.com/pluginsglpi/formcreator/commit/2d7a5f68eb0758bc4f64efa35a1a55246f48538b))
27+
* **targetticket:** last valid category ignored visibility state ([f6e09f0](https://github.com/pluginsglpi/formcreator/commit/f6e09f09e8f901794959bc5fae1a649f22d5bf0d))
28+
* **targetticket,targetchange:** too many escaping on target_name ([fcfbed9](https://github.com/pluginsglpi/formcreator/commit/fcfbed98ba92841dddf51b1efebaf2773fd58627))
29+
* modal positionning ([a0e0873](https://github.com/pluginsglpi/formcreator/commit/a0e0873fd853804f65a61aed67a4eb3fd9cfc5da))
30+
31+
32+
### Features
33+
34+
* **question,section:** show conditions count ([dd22ca0](https://github.com/pluginsglpi/formcreator/commit/dd22ca02b091c8b4f70243d98ef64fc69b9f4394))
35+
36+
37+
138
<a name="2.10.1"></a>
239
## [2.10.1](https://github.com/pluginsglpi/formcreator/compare/v2.10.0..2.10.1) (2020-07-16)
340

css/styles.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,6 +1389,19 @@ span.fc_list_icon {
13891389
background: #fec95c;
13901390
}
13911391

1392+
/* Count of conditions in design view */
1393+
.plugin_formcreator_conditions_count {
1394+
border-radius: 50%;
1395+
background-color: #FFF;
1396+
min-width: 18px;
1397+
margin-right: 5px;
1398+
display: inline-block;
1399+
text-align: center;
1400+
vertical-align: top;
1401+
padding: 3px 2px 5px;
1402+
box-sizing: border-box;
1403+
}
1404+
13921405
/* ################--------------- Responsive ---------------#################### */
13931406
@media screen and (max-width: 700px) {
13941407
form.formcreator_form {

inc/question.class.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,13 @@ public static function showForForm(CommonDBTM $item, $withtemplate = '') {
137137
echo '<tr class="section_row" id="section_row_' . $section->getID() . '">';
138138
echo '<th onclick="plugin_formcreator_editSection(' . $item->getId() . ', \'' . $token . '\', ' . $section->getID() . ')">';
139139
echo "<a href='#'>";
140+
// Show count of conditions
141+
$nb = (new DBUtils())->countElementsInTable(PluginFormcreatorCondition::getTable(), [
142+
'itemtype' => PluginFormcreatorSection::getType(),
143+
'items_id' => $section->getID(),
144+
]);
145+
echo "<sup class='plugin_formcreator_conditions_count'>$nb</sup>";
146+
140147
echo $section->fields['name'];
141148
echo '</a>';
142149
echo '</th>';
@@ -189,6 +196,14 @@ public static function showForForm(CommonDBTM $item, $withtemplate = '') {
189196
echo "<a href='#'>";
190197
echo $field->getHtmlIcon();
191198
echo '&nbsp;';
199+
200+
// Show count of conditions
201+
$nb = (new DBUtils())->countElementsInTable(PluginFormcreatorCondition::getTable(), [
202+
'itemtype' => PluginFormcreatorQuestion::getType(),
203+
'items_id' => $question->getID(),
204+
]);
205+
echo "<sup class='plugin_formcreator_conditions_count'>$nb</sup>";
206+
192207
echo $question->fields['name'];
193208
echo "<a>";
194209
echo '</td>';

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
}
1212
},
1313
"dependencies": [],
14-
"version": "2.10.2-dev"
14+
"version": "2.10.2"
1515
}

plugin.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,12 @@ Features
326326
<compatibility>9.5</compatibility>
327327
<download_url>https://github.com/pluginsGLPI/formcreator/releases/download/v2.10.1/glpi-formcreator-2.10.1.tar.bz2</download_url>
328328
</version>
329+
<version>
330+
<num>2.10.2</num>
331+
<compatibility>9.4</compatibility>
332+
<compatibility>9.5</compatibility>
333+
<download_url>https://github.com/pluginsGLPI/formcreator/releases/download/v2.10.2/glpi-formcreator-2.10.2.tar.bz2</download_url>
334+
</version>
329335
</versions>
330336
<langs>
331337
<lang>ca_ES</lang>

setup.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131

3232
global $CFG_GLPI;
3333
// Version of the plugin
34-
define('PLUGIN_FORMCREATOR_VERSION', '2.10.2-dev');
34+
define('PLUGIN_FORMCREATOR_VERSION', '2.10.2');
3535
// Schema version of this version
3636
define('PLUGIN_FORMCREATOR_SCHEMA_VERSION', '2.10');
3737
// is or is not an official release of the plugin
38-
define('PLUGIN_FORMCREATOR_IS_OFFICIAL_RELEASE', false);
38+
define('PLUGIN_FORMCREATOR_IS_OFFICIAL_RELEASE', true);
3939

4040
// Minimal GLPI version, inclusive
4141
define ('PLUGIN_FORMCREATOR_GLPI_MIN_VERSION', '9.4');

0 commit comments

Comments
 (0)