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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
cd39b1c6
Commit
cd39b1c6
authored
Dec 7, 2016
by
aspangaro
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Field comments not registered in new member public form & presentation
parent
2938e01f
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
htdocs/adherents/class/adherent.class.php
+9
-4
9 additions, 4 deletions
htdocs/adherents/class/adherent.class.php
htdocs/public/members/new.php
+2
-3
2 additions, 3 deletions
htdocs/public/members/new.php
htdocs/public/members/public_card.php
+3
-3
3 additions, 3 deletions
htdocs/public/members/public_card.php
with
14 additions
and
10 deletions
htdocs/adherents/class/adherent.class.php
+
9
−
4
View file @
cd39b1c6
...
...
@@ -83,6 +83,9 @@ class Adherent extends CommonObject
var
$datevalid
;
var
$birth
;
var
$note_public
;
var
$note_private
;
var
$typeid
;
// Id type adherent
var
$type
;
// Libelle type adherent
var
$need_subscription
;
...
...
@@ -411,6 +414,8 @@ class Adherent extends CommonObject
$this
->
state_id
=
(
$this
->
state_id
>
0
?
$this
->
state_id
:
$this
->
state_id
);
if
(
!
empty
(
$conf
->
global
->
MAIN_FIRST_TO_UPPER
))
$this
->
lastname
=
ucwords
(
trim
(
$this
->
lastname
));
if
(
!
empty
(
$conf
->
global
->
MAIN_FIRST_TO_UPPER
))
$this
->
firstname
=
ucwords
(
trim
(
$this
->
firstname
));
$this
->
note_public
=
(
$this
->
note_public
?
$this
->
note_public
:
$this
->
note_public
);
$this
->
note_private
=
(
$this
->
note_private
?
$this
->
note_private
:
$this
->
note_private
);
// Check parameters
if
(
!
empty
(
$conf
->
global
->
ADHERENT_MAIL_REQUIRED
)
&&
!
isValidEMail
(
$this
->
email
))
...
...
@@ -440,7 +445,7 @@ class Adherent extends CommonObject
$sql
.
=
", phone_perso="
.
(
$this
->
phone_perso
?
"'"
.
$this
->
db
->
escape
(
$this
->
phone_perso
)
.
"'"
:
"null"
);
$sql
.
=
", phone_mobile="
.
(
$this
->
phone_mobile
?
"'"
.
$this
->
db
->
escape
(
$this
->
phone_mobile
)
.
"'"
:
"null"
);
$sql
.
=
", note_private="
.
(
$this
->
note_private
?
"'"
.
$this
->
db
->
escape
(
$this
->
note_private
)
.
"'"
:
"null"
);
$sql
.
=
", note_public="
.
(
$this
->
note_p
rivate
?
"'"
.
$this
->
db
->
escape
(
$this
->
note_public
)
.
"'"
:
"null"
);
$sql
.
=
", note_public="
.
(
$this
->
note_p
ublic
?
"'"
.
$this
->
db
->
escape
(
$this
->
note_public
)
.
"'"
:
"null"
);
$sql
.
=
", photo="
.
(
$this
->
photo
?
"'"
.
$this
->
photo
.
"'"
:
"null"
);
$sql
.
=
", public='"
.
$this
->
public
.
"'"
;
$sql
.
=
", statut="
.
$this
->
statut
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/public/members/new.php
+
2
−
3
View file @
cd39b1c6
...
...
@@ -238,11 +238,10 @@ if ($action == 'add')
$adh
->
pass
=
$_POST
[
"pass1"
];
}
$adh
->
photo
=
$_POST
[
"photo"
];
$adh
->
note
=
$_POST
[
"note"
];
$adh
->
country_id
=
$_POST
[
"country_id"
];
$adh
->
state_id
=
$_POST
[
"state_id"
];
$adh
->
typeid
=
$_POST
[
"type"
];
$adh
->
note
=
$_POST
[
"
comment
"
];
$adh
->
note
_private
=
$_POST
[
"
note_private
"
];
$adh
->
morphy
=
$_POST
[
"morphy"
];
$adh
->
birth
=
$birthday
;
...
...
@@ -520,7 +519,7 @@ foreach($extrafields->attribute_label as $key=>$value)
// Comments
print
'<tr>'
;
print
'<td valign="top">'
.
$langs
->
trans
(
"Comments"
)
.
'</td>'
;
print
'<td valign="top"><textarea name="
comment" wrap="soft" cols="60
" rows="'
.
ROWS_
4
.
'">'
.
dol_escape_htmltag
(
GETPOST
(
'
comment
'
))
.
'</textarea></td>'
;
print
'<td valign="top"><textarea name="
note_private" id="note_private" wrap="soft" class="quatrevingtpercent
" rows="'
.
ROWS_
3
.
'">'
.
dol_escape_htmltag
(
GETPOST
(
'
note_private
'
))
.
'</textarea></td>'
;
print
'</tr>'
.
"
\n
"
;
// Add specific fields used by Dolibarr foundation for example
...
...
This diff is collapsed.
Click to expand it.
htdocs/public/members/public_card.php
+
3
−
3
View file @
cd39b1c6
...
...
@@ -95,10 +95,10 @@ if ($id > 0)
print
'<tr><td>'
.
$langs
->
trans
(
"Lastname"
)
.
'</td><td class="valeur">'
.
$object
->
lastname
.
' </td></tr>'
;
print
'<tr><td>'
.
$langs
->
trans
(
"Company"
)
.
'</td><td class="valeur">'
.
$object
->
societe
.
' </td></tr>'
;
print
'<tr><td>'
.
$langs
->
trans
(
"Address"
)
.
'</td><td class="valeur">'
.
nl2br
(
$object
->
address
)
.
' </td></tr>'
;
print
'<tr><td>'
.
$langs
->
trans
(
"Zip"
)
.
' '
.
$langs
->
trans
(
"Town"
)
.
'</td><td class="valeur">'
.
$object
->
zip
.
' '
.
$object
->
town
.
' </td></tr>'
;
print
'<tr><td>'
.
$langs
->
trans
(
"Zip"
)
.
'
/
'
.
$langs
->
trans
(
"Town"
)
.
'</td><td class="valeur">'
.
$object
->
zip
.
' '
.
$object
->
town
.
' </td></tr>'
;
print
'<tr><td>'
.
$langs
->
trans
(
"Country"
)
.
'</td><td class="valeur">'
.
$object
->
country
.
' </td></tr>'
;
print
'<tr><td>'
.
$langs
->
trans
(
"EMail"
)
.
'</td><td class="valeur">'
.
$object
->
email
.
' </td></tr>'
;
print
'<tr><td>'
.
$langs
->
trans
(
"Birthday"
)
.
'</td><td class="valeur">'
.
$object
->
birth
.
'
</td></tr>'
;
print
'<tr><td>'
.
$langs
->
trans
(
"Birthday"
)
.
'</td><td class="valeur">'
.
dol_print_date
(
$object
->
birth
,
'day'
)
.
'
</td></tr>'
;
if
(
isset
(
$object
->
photo
)
&&
$object
->
photo
!=
''
)
{
...
...
@@ -111,7 +111,7 @@ if ($id > 0)
// print "<tr><td>$value</td><td>".$object->array_options["options_$key"]." </td></tr>\n";
// }
print
'<tr><td valign="top">'
.
$langs
->
trans
(
"Comments"
)
.
'</td><td>'
.
nl2br
(
$object
->
note
)
.
'</td></tr>'
;
print
'<tr><td valign="top">'
.
$langs
->
trans
(
"Comments"
)
.
'</td><td>'
.
nl2br
(
$object
->
note
_public
)
.
'</td></tr>'
;
print
'</table>'
;
}
...
...
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