Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
mapas
Mapas - MS
Commits
efd43aa1
Commit
efd43aa1
authored
4 years ago
by
Bruno Antunes Magrini
Browse files
Options
Download
Email Patches
Plain Diff
Fix chapadao
parent
e4dae72f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
themes/MatoGrossoSul/Theme.php
themes/MatoGrossoSul/Theme.php
+17
-0
No files found.
themes/MatoGrossoSul/Theme.php
View file @
efd43aa1
...
...
@@ -59,6 +59,23 @@ Além de conferir a agenda de eventos, você também pode colaborar na gestão d
$registration
->
save
(
true
);
$app
->
enableAccessControl
();
}
// volta inscrições de chapadão para pendente
if
(
!
$app
->
repo
(
'DbUpdate'
)
->
findOneBy
([
'name'
=>
'chapadao'
])){
$app
->
disableAccessControl
();
$dbu
=
new
\
MapasCulturais\Entities\DbUpdate
;
$dbu
->
name
=
'chapadao'
;
$dbu
->
save
(
true
);
$opportunity
=
$app
->
repo
(
'opportunity'
)
->
find
(
12
);
$opportunity
->
publishedRegistrations
=
false
;
$opportunity
->
save
(
true
);
$registrations
=
$app
->
repo
(
'Registration'
)
->
findBy
([
'opportunity'
=>
12
,
'status'
=>
[
2
,
10
,
3
]]);
foreach
(
$registrations
as
$r
){
$r
->
setStatus
(
1
);
$r
->
save
(
true
);
}
$app
->
enableAccessControl
();
}
$app
->
hook
(
'view.render(<<*>>):before'
,
function
()
use
(
$app
)
{
$this
->
_publishAssets
();
});
...
...
This diff is collapsed.
Click to expand it.
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