Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
E
esi-management
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
John
esi-management
Commits
04682741
Commit
04682741
authored
Dec 21, 2016
by
John Punzalan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update entity form edit
parent
07bcdec7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
class-esi-management-entity-form.php
...admin/modules/entity/class-esi-management-entity-form.php
+7
-4
No files found.
wp-content/plugins/esi-management/admin/modules/entity/class-esi-management-entity-form.php
View file @
04682741
...
...
@@ -15,6 +15,8 @@ class Esi_Management_Entity_Form {
add_action
(
'admin_init'
,
array
(
$this
,
'handle_form'
)
);
}
/**
* Handle the new entity and edit form
*
...
...
@@ -34,6 +36,7 @@ class Esi_Management_Entity_Form {
wp_die
(
__
(
'Permission Denied!'
,
'esi'
)
);
}
$errors
=
array
();
$page_url
=
admin_url
(
'admin.php?page=esi-management-entity'
);
$field_id
=
isset
(
$_POST
[
'field_id'
]
)
?
intval
(
$_POST
[
'field_id'
]
)
:
0
;
...
...
@@ -45,11 +48,11 @@ class Esi_Management_Entity_Form {
$city
=
isset
(
$_POST
[
'city'
]
)
?
sanitize_text_field
(
$_POST
[
'city'
]
)
:
''
;
$is_investor
=
isset
(
$_POST
[
'is_investor'
]
)
?
sanitize_text_field
(
$_POST
[
'is_investor'
]
)
:
''
;
$entity_type_id
=
isset
(
$_POST
[
'entity_type_id'
]
)
?
sanitize_text_field
(
$_POST
[
'entity_type_id'
]
)
:
''
;
$employees
=
isset
(
$_POST
[
'employees'
]
)
?
sanitize_text_field
(
$_POST
[
'employees'
]
)
:
''
;
$employees
=
isset
(
$_POST
[
'employees'
]
)
?
(
int
)
sanitize_text_field
(
$_POST
[
'employees'
]
)
:
''
;
$acquired_date
=
isset
(
$_POST
[
'acquired_date'
]
)
?
sanitize_text_field
(
$_POST
[
'acquired_date'
]
)
:
''
;
$acquired_amount
=
isset
(
$_POST
[
'acquired_amount'
]
)
?
sanitize_text_field
(
$_POST
[
'acquired_amount'
]
)
:
''
;
$total_raised
=
isset
(
$_POST
[
'total_raised'
]
)
?
sanitize_text_field
(
$_POST
[
'total_raised'
]
)
:
''
;
$latest_round_type
=
isset
(
$_POST
[
'latest_round_type'
]
)
?
sanitize_text_field
(
$_POST
[
'latest_round_type'
]
)
:
''
;
$acquired_amount
=
isset
(
$_POST
[
'acquired_amount'
]
)
?
(
int
)
sanitize_text_field
(
$_POST
[
'acquired_amount'
]
)
:
''
;
$total_raised
=
isset
(
$_POST
[
'total_raised'
]
)
?
(
int
)
sanitize_text_field
(
$_POST
[
'total_raised'
]
)
:
''
;
$latest_round_type
=
isset
(
$_POST
[
'latest_round_type'
]
)
?
(
int
)
sanitize_text_field
(
$_POST
[
'latest_round_type'
]
)
:
''
;
if
(
$is_investor
==
"on"
)
{
$is_investor
=
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment