{% if search_status|length > 0 %}
-
{{ 'Status des documents a rechercher' | trans }}
+
{{ 'Status des documents a rechercher' | trans }}
{% for databox_id, databox in search_status %}
{% if databox.status|length > 0 %}
diff --git a/templates/web/thesaurus/thesaurus.html.twig b/templates/web/thesaurus/thesaurus.html.twig
index 86e073d882..48b4492a0b 100644
--- a/templates/web/thesaurus/thesaurus.html.twig
+++ b/templates/web/thesaurus/thesaurus.html.twig
@@ -131,11 +131,7 @@
alert("{{ 'phraseanet::erreur: Votre session est fermee, veuillez vous re-authentifier' | trans }}");
self.location.replace(self.location.href);
}
- //if(manageSession(data))
- var t = 5000; // 120000;
- if(data.apps && parseInt(data.apps)>1)
- t = Math.round((Math.sqrt(parseInt(data.apps)-1) * 1.3 * 120000));
- window.setTimeout("pollNotifications();", t);
+ window.setTimeout("pollNotifications();", 10000);
return;
}
@@ -460,13 +456,8 @@
// alert(url);
ret = loadXMLDoc(url, null, true);
- // alert(ret);
- allhits = ret.getElementsByTagName("allhits").item(0).firstChild.nodeValue;
- if(allhits==0)
- msg = "{{ 'thesaurus:: Supprimer cette branche ?
(les termes concernes remonteront en candidats a la prochaine indexation)' | trans }}";
- else
- msg = "{{ 'thesaurus:: Des reponses sont retournees par cette branche.
Supprimer quand meme ?
(les termes concernes remonteront en candidats a la prochaine indexation)' | trans }}";
+ msg = "{{ 'thesaurus:: Supprimer cette branche ?
(les termes concernes remonteront en candidats a la prochaine indexation)' | trans }}";
if(confirm(msg))
{
@@ -1027,6 +1018,7 @@
if(confirm("{{ 'thesaurus:: deplacer le terme dans la corbeille ?' | trans | e('js') }}"+"\n\n"+fullpath+"\n\n"))
{
+ console.log(url);
// xmlhttp/delts.x.php?bid=15&id=T1.629&debug=1
// alert(url+"?"+parms);
ret = loadXMLDoc(url, parms, true);
diff --git a/tests/bootstrap.sh b/tests/bootstrap.sh
index 14330c30f8..d4bcfc5476 100755
--- a/tests/bootstrap.sh
+++ b/tests/bootstrap.sh
@@ -28,9 +28,11 @@ SET @@global.wait_timeout= 999999;
DROP SCHEMA IF EXISTS ab_test;DROP SCHEMA IF EXISTS db_test;
CREATE SCHEMA IF NOT EXISTS ab_test;CREATE SCHEMA IF NOT EXISTS db_test;
'
+
if ! ./bin/developer system:uninstall > /dev/null 2>&1
then
- rm -f config/configuration.yml config/configuration-compiled.php
+ mv config/configuration.yml{,.backup}
+ rm -f config/configuration-compiled.php
fi
./bin/setup system:install --email=test@phraseanet.com --password=test --db-user=root --db-template=en --db-password=toor --databox=db_test --appbox=ab_test --server-name=http://127.0.0.1 -y $VERBOSITY
case "$INSTALL_MODE" in