Skip to content

Commit

Permalink
Merge branch 'release/2.10.2' into support/2.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Sep 8, 2020
2 parents 11a7b3f + 8bd8d6a commit c275aca
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 3 deletions.
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,40 @@
## [2.10.2](https://github.com/pluginsglpi/formcreator/compare/v2.10.1...v2.10.2) (2020-09-07)


### Bug Fixes

* **condition:** duplicated JS function ([acbe985](https://github.com/pluginsglpi/formcreator/commit/acbe985bf3ddd710ddeacd4c30c7f47597f155b2))
* **confition:** hide garbage conditions ([8810cd6](https://github.com/pluginsglpi/formcreator/commit/8810cd68186414902d5322ff938dff271a6ea129))
* **filefield:** broken mandatory check ([f70a847](https://github.com/pluginsglpi/formcreator/commit/f70a84725da99d14980a69e9af7c258bf406dafd))
* **form:** bad session var type when using anonymous form ([9d43e80](https://github.com/pluginsglpi/formcreator/commit/9d43e80f97c9aa3d4575e31771b3e1cb6bbda838))
* **form:** doubling starcauses SQL error ([41101ca](https://github.com/pluginsglpi/formcreator/commit/41101ca151c9e21e9205a1ba8e63ed6dd1d2f9b7))
* **form:** error in displayed form URL ([d21c5b3](https://github.com/pluginsglpi/formcreator/commit/d21c5b3a4edaa1eebe4f81de82a78ea5a3db4f79))
* **form:** forbid clone massive action in GLPI 9.5 ([2947d6f](https://github.com/pluginsglpi/formcreator/commit/2947d6f683dae27f854bdd1500322f281c8ea7e3))
* **form:** prevent SQL errors, remove natural language search ([2eabddf](https://github.com/pluginsglpi/formcreator/commit/2eabddf5e93e777c2051adb741a3a9cd5c025fee))
* **form_profile:** HTML form name mismatch ([f201f37](https://github.com/pluginsglpi/formcreator/commit/f201f37a5a9635fdd163955356ed5eb49be1a6bd))
* **form_profile:** not rendered selection of profiles ([1c0d27d](https://github.com/pluginsglpi/formcreator/commit/1c0d27d502fa358589013230890265b559328710))
* **formanswer:** do not render section title if invisible ([6bb6be3](https://github.com/pluginsglpi/formcreator/commit/6bb6be33c782ea6668875a7251d1ba0f38f06bd7))
* **formanswer:** missing validation checks when user updates a refused form ([788ac89](https://github.com/pluginsglpi/formcreator/commit/788ac89cf06e6fbc53ff8d4357514eae054b5275))
* **issue:** adjust ticket status n automatic action ([397a912](https://github.com/pluginsglpi/formcreator/commit/397a9127acd05421eed3513737085fc32d4e6c6c))
* **issue:** repopulate table on upgrade ([90727ae](https://github.com/pluginsglpi/formcreator/commit/90727ae21ed3986c3c84a477bae0273a129872e7))
* **issue:** status conversion for ticket ([9aae13d](https://github.com/pluginsglpi/formcreator/commit/9aae13d08a32b8d65511f8b22e15482791cce458))
* **issue:** syncissues drops most requesters ([1fa10c8](https://github.com/pluginsglpi/formcreator/commit/1fa10c82774b5beadd0e252e2d0c796f768eee4f))
* **issue:** validated ticket status ([24dacd2](https://github.com/pluginsglpi/formcreator/commit/24dacd2a071a64be6590480bca9d696eabab8750))
* **question:** parameters duplicated twice ([e6889cc](https://github.com/pluginsglpi/formcreator/commit/e6889cc0768a0f90743cab9523da927051623e12))
* **section:** order of sections not respected on import ([e9bf84b](https://github.com/pluginsglpi/formcreator/commit/e9bf84b7c507f6dbfb15b1a095143bbac1bc23aa))
* **target:** load all tag questions ([bbcfc8a](https://github.com/pluginsglpi/formcreator/commit/bbcfc8a5015682ea516c40255788448f3a95a6a0))
* **targetchange:** do not geenrate HTML for simple text fields ([2d7a5f6](https://github.com/pluginsglpi/formcreator/commit/2d7a5f68eb0758bc4f64efa35a1a55246f48538b))
* **targetticket:** last valid category ignored visibility state ([f6e09f0](https://github.com/pluginsglpi/formcreator/commit/f6e09f09e8f901794959bc5fae1a649f22d5bf0d))
* **targetticket,targetchange:** too many escaping on target_name ([fcfbed9](https://github.com/pluginsglpi/formcreator/commit/fcfbed98ba92841dddf51b1efebaf2773fd58627))
* modal positionning ([a0e0873](https://github.com/pluginsglpi/formcreator/commit/a0e0873fd853804f65a61aed67a4eb3fd9cfc5da))


### Features

* **question,section:** show conditions count ([dd22ca0](https://github.com/pluginsglpi/formcreator/commit/dd22ca02b091c8b4f70243d98ef64fc69b9f4394))



<a name="2.10.1"></a>
## [2.10.1](https://github.com/pluginsglpi/formcreator/compare/v2.10.0..2.10.1) (2020-07-16)

Expand Down
13 changes: 13 additions & 0 deletions css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1389,6 +1389,19 @@ span.fc_list_icon {
background: #fec95c;
}

/* Count of conditions in design view */
.plugin_formcreator_conditions_count {
border-radius: 50%;
background-color: #FFF;
min-width: 18px;
margin-right: 5px;
display: inline-block;
text-align: center;
vertical-align: top;
padding: 3px 2px 5px;
box-sizing: border-box;
}

/* ################--------------- Responsive ---------------#################### */
@media screen and (max-width: 700px) {
form.formcreator_form {
Expand Down
15 changes: 15 additions & 0 deletions inc/question.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ public static function showForForm(CommonDBTM $item, $withtemplate = '') {
echo '<tr class="section_row" id="section_row_' . $section->getID() . '">';
echo '<th onclick="plugin_formcreator_editSection(' . $item->getId() . ', \'' . $token . '\', ' . $section->getID() . ')">';
echo "<a href='#'>";
// Show count of conditions
$nb = (new DBUtils())->countElementsInTable(PluginFormcreatorCondition::getTable(), [
'itemtype' => PluginFormcreatorSection::getType(),
'items_id' => $section->getID(),
]);
echo "<sup class='plugin_formcreator_conditions_count'>$nb</sup>";

echo $section->fields['name'];
echo '</a>';
echo '</th>';
Expand Down Expand Up @@ -189,6 +196,14 @@ public static function showForForm(CommonDBTM $item, $withtemplate = '') {
echo "<a href='#'>";
echo $field->getHtmlIcon();
echo '&nbsp;';

// Show count of conditions
$nb = (new DBUtils())->countElementsInTable(PluginFormcreatorCondition::getTable(), [
'itemtype' => PluginFormcreatorQuestion::getType(),
'items_id' => $question->getID(),
]);
echo "<sup class='plugin_formcreator_conditions_count'>$nb</sup>";

echo $question->fields['name'];
echo "<a>";
echo '</td>';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
}
},
"dependencies": [],
"version": "2.10.2-dev"
"version": "2.10.2"
}
6 changes: 6 additions & 0 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,12 @@ Features
<compatibility>9.5</compatibility>
<download_url>https://github.com/pluginsGLPI/formcreator/releases/download/v2.10.1/glpi-formcreator-2.10.1.tar.bz2</download_url>
</version>
<version>
<num>2.10.2</num>
<compatibility>9.4</compatibility>
<compatibility>9.5</compatibility>
<download_url>https://github.com/pluginsGLPI/formcreator/releases/download/v2.10.2/glpi-formcreator-2.10.2.tar.bz2</download_url>
</version>
</versions>
<langs>
<lang>ca_ES</lang>
Expand Down
4 changes: 2 additions & 2 deletions setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@

global $CFG_GLPI;
// Version of the plugin
define('PLUGIN_FORMCREATOR_VERSION', '2.10.2-dev');
define('PLUGIN_FORMCREATOR_VERSION', '2.10.2');
// Schema version of this version
define('PLUGIN_FORMCREATOR_SCHEMA_VERSION', '2.10');
// is or is not an official release of the plugin
define('PLUGIN_FORMCREATOR_IS_OFFICIAL_RELEASE', false);
define('PLUGIN_FORMCREATOR_IS_OFFICIAL_RELEASE', true);

// Minimal GLPI version, inclusive
define ('PLUGIN_FORMCREATOR_GLPI_MIN_VERSION', '9.4');
Expand Down

0 comments on commit c275aca

Please sign in to comment.