Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
e9b9491a
Commit
e9b9491a
authored
11 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Clean database. Fix with firefox.
parent
a3fcb5ac
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/install/mysql/migration/repair.sql
+7
-0
7 additions, 0 deletions
htdocs/install/mysql/migration/repair.sql
htdocs/opensurvey/results.php
+10
-7
10 additions, 7 deletions
htdocs/opensurvey/results.php
with
17 additions
and
7 deletions
htdocs/install/mysql/migration/repair.sql
+
7
−
0
View file @
e9b9491a
...
...
@@ -94,3 +94,10 @@ UPDATE llx_product p SET p.stock= (SELECT SUM(ps.reel) FROM llx_product_stock ps
-- DROP TABLE llx_product_fournisseur;
-- ALTER TABLE llx_product_fournisseur_price DROP COLUMN fk_product_fournisseur;
ALTER
TABLE
llx_product_fournisseur_price
DROP
FOREIGN
KEY
fk_product_fournisseur
;
-- Fix: deprecated tag to new one
update
llx_opensurvey_sondage
set
format
=
'D'
where
format
=
'D+'
;
update
llx_opensurvey_sondage
set
format
=
'A'
where
format
=
'A+'
;
This diff is collapsed.
Click to expand it.
htdocs/opensurvey/results.php
+
10
−
7
View file @
e9b9491a
...
...
@@ -157,7 +157,7 @@ if ($testmodifier)
}
// Add column (not for date)
if
(
GETPOST
(
"ajoutercolonne"
)
&&
GETPOST
(
'nouvellecolonne'
)
&&
(
$object
->
format
==
"A"
)
)
if
(
GETPOST
(
"ajoutercolonne"
)
&&
GETPOST
(
'nouvellecolonne'
)
&&
$object
->
format
==
"A"
)
{
// Security check
if
(
!
$user
->
rights
->
opensurvey
->
write
)
accessforbidden
();
...
...
@@ -181,8 +181,9 @@ if (GETPOST("ajoutercolonne") && GETPOST('nouvellecolonne') && ($object->format
}
// Add column (with format date)
if
(
isset
(
$_POST
[
"ajoutercolonne"
])
&&
(
$object
->
format
==
"D"
)
)
if
(
isset
(
$_POST
[
"ajoutercolonne"
])
&&
$object
->
format
==
"D"
)
{
// Security check
if
(
!
$user
->
rights
->
opensurvey
->
write
)
accessforbidden
();
...
...
@@ -276,7 +277,7 @@ if (isset($_POST["ajoutercolonne"]) && ($object->format == "D"))
// Delete line
for
(
$i
=
0
;
$i
<
$nblignes
;
$i
++
)
{
if
(
isset
(
$_
POST
[
"effaceligne
$i
"
]))
if
(
GETPOST
(
"effaceligne"
.
$i
)
||
GETPOST
(
"effaceligne"
.
$i
.
"_x"
)
||
GET
POST
(
"effaceligne
"
.
$i
.
".x"
))
// effacelignei for chrome, effacelignei_x for firefox
{
// Security check
if
(
!
$user
->
rights
->
opensurvey
->
write
)
accessforbidden
();
...
...
@@ -311,7 +312,8 @@ for ($i = 0; $i < $nblignes; $i++)
// Delete column
for
(
$i
=
0
;
$i
<
$nbcolonnes
;
$i
++
)
{
if
(
isset
(
$_POST
[
"effacecolonne
$i
"
])
&&
$nbcolonnes
>
1
)
if
((
GETPOST
(
"effacecolonne"
.
$i
)
||
GETPOST
(
"effacecolonne"
.
$i
.
"_x"
)
||
GETPOST
(
"effacecolonne"
.
$i
.
".x"
))
&&
$nbcolonnes
>
1
)
// effacecolonnei for chrome, effacecolonnei_x for firefox
{
// Security check
if
(
!
$user
->
rights
->
opensurvey
->
write
)
accessforbidden
();
...
...
@@ -462,19 +464,20 @@ dol_fiche_end();
print
'</form>'
.
"
\n
"
;
print
'<div class="tabsAction">'
;
print
'<a class="butAction" href="exportcsv.php?id='
.
$numsondage
.
'">'
.
$langs
->
trans
(
"ExportSpreadsheet"
)
.
' (.CSV)'
.
'</a>'
;
print
'</div>'
;
// Add form to add a field
// Show form to add a new field/column
if
(
GETPOST
(
'ajoutsujet'
))
{
// Security check
if
(
!
$user
->
rights
->
opensurvey
->
write
)
accessforbidden
();
//on recupere les données et les sujets du sondage
print
'<form name="formulaire" action="" method="POST">'
.
"
\n
"
;
print
'<input type="hidden" name="backtourl" value="'
.
GETPOST
(
'backtourl'
)
.
'">'
;
...
...
@@ -706,7 +709,7 @@ if ($object->format=="D")
}
else
{
//
affichage des sujets du sondage
//
Show titles
print
'<tr>'
.
"
\n
"
;
print
'<td></td>'
.
"
\n
"
;
print
'<td></td>'
.
"
\n
"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment