Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
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
Development
CiviCRM Core
Commits
38e03904
Unverified
Commit
38e03904
authored
5 years ago
by
Eileen McNaughton
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #15744 from yashodha/participant_edit
(
#1065
) Participant in Edit mode needs to be shown consistently
parents
2350cd4c
2944baac
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CRM/Event/Form/Participant.php
+8
-5
8 additions, 5 deletions
CRM/Event/Form/Participant.php
templates/CRM/Event/Form/Participant.tpl
+4
-11
4 additions, 11 deletions
templates/CRM/Event/Form/Participant.tpl
with
12 additions
and
16 deletions
CRM/Event/Form/Participant.php
+
8
−
5
View file @
38e03904
...
...
@@ -481,6 +481,9 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment
$this
->
assign
(
'registered_by_display_name'
,
CRM_Contact_BAO_Contact
::
displayName
(
$registered_by_contact_id
));
}
}
elseif
(
$this
->
_contactID
)
{
$defaults
[
$this
->
_id
][
'contact_id'
]
=
$this
->
_contactID
;
}
//setting default register date
if
(
$this
->
_action
==
CRM_Core_Action
::
ADD
)
{
...
...
@@ -641,11 +644,11 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment
return
;
}
if
(
$this
->
_single
&&
$this
->
_context
==
'standalone'
)
{
$this
->
addEntityRef
(
'contact_id'
,
ts
(
'
Contact'
),
[
'create'
=>
TRUE
,
'api'
=>
[
'extra'
=>
[
'email'
]],
],
TRUE
);
if
(
$this
->
_single
)
{
$contactField
=
$this
->
addEntityRef
(
'contact_id'
,
ts
(
'
Participant'
),
[
'create'
=>
TRUE
,
'api'
=>
[
'extra'
=>
[
'email'
]]],
TRUE
);
if
(
$this
->
_context
!=
'standalone'
)
{
$contactField
->
freeze
();
}
}
$eventFieldParams
=
[
...
...
This diff is collapsed.
Click to expand it.
templates/CRM/Event/Form/Participant.tpl
+
4
−
11
View file @
38e03904
...
...
@@ -227,17 +227,10 @@
{
else
}
{* If action is other than Delete *}
<div
class=
"crm-submit-buttons"
>
{
include
file
=
"CRM/common/formButtons.tpl"
location
=
"top"
}
</div>
<table
class=
"form-layout-compressed"
>
{
if
$single
and
$context
neq
'standalone'
}
<tr
class=
"crm-participant-form-block-displayName"
>
<td
class=
"label font-size12pt"
><label>
{
ts
}
Participant
{/
ts
}
</label></td>
<td
class=
"font-size12pt view-value"
>
{
$displayName
}
</td>
</tr>
{
else
}
<tr
class=
"crm-participant-form-contact-id"
>
<td
class=
"label"
>
{
$form.contact_id.label
}
</td>
<td>
{
$form.contact_id.html
}
</td>
</tr>
{/
if
}
<tr
class=
"crm-participant-form-contact-id"
>
<td
class=
"label"
>
{
$form.contact_id.label
}
</td>
<td>
{
$form.contact_id.html
}
</td>
</tr>
{
if
$action
EQ
2
}
{
if
$additionalParticipants
}
{* Display others registered by this participant *}
<tr
class=
"crm-participant-form-block-additionalParticipants"
>
...
...
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