Skip to content

Commit

Permalink
resolvi o problema dos comentários bugados embaixo de cada entity-fie…
Browse files Browse the repository at this point in the history
…ld, tamém os problemas de erro ao entrar na home
  • Loading branch information
PaG0Dezaum2005 committed Sep 4, 2024
1 parent d90fffd commit 931198c
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 45 deletions.
1 change: 1 addition & 0 deletions dev/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ services:
- BUILD_ASSETS=0
- PENDING_PCACHE_RECREATION_INTERVAL=5
- JOBS_INTERVAL=5
- APP_MODE=development
- REDIS_CACHE=redis
- MAILER_TRANSPORT=smtp://mailhog:1025
- MAILER_FROM=sysadmin@localhost
Expand Down
3 changes: 0 additions & 3 deletions src/conf/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
$folders = glob(CONFIG_PATH . '*.d/');
$folders_dev = glob(PROTECTED_PATH . 'containers/config.d/');

if ($_ENV['APP_MODE'] === APPMODE_DEVELOPMENT) {
$folders = array_merge($folders, $folders_dev);
}
sort($folders);
foreach($folders as $folder) {
$config_files = glob($folder . '*.php');
Expand Down
18 changes: 0 additions & 18 deletions src/core/Traits/EntityManagerModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,24 +90,6 @@ private function generateOpportunity() : ProjectOpportunity
return $this->opportunityModel;
}

private function generateOpportunity() : ProjectOpportunity
{
$app = App::i();

$postData = $this->postData;

$name = $postData['name'];

$this->opportunityModel = clone $this->opportunity;

$this->opportunityModel->setName($name);
$this->opportunityModel->setStatus(0);
$app->em->persist($this->opportunityModel);
$app->em->flush();

return $this->opportunityModel;
}

private function generateEvaluationMethods() : void
{
$app = App::i();
Expand Down
1 change: 0 additions & 1 deletion src/core/Traits/EntityOpportunityDuplicator.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

trait EntityOpportunityDuplicator {

private ProjectOpportunity $opportunity;
private ProjectOpportunity $newOpportunity;

function ALL_duplicate(){
Expand Down
23 changes: 0 additions & 23 deletions src/modules/Entities/components/entity-field/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,29 +64,6 @@
</div>
</template>

/*<template v-if="is('pcd')">
<div class="field__group">
<!-- Yes/No Choice -->
<div>
<label>
<input type="radio" v-model="showCheckboxes" value="yes" @change="handleRadioChange"> Yes
</label>
<label>
<input type="radio" v-model="showCheckboxes" value="no" @change="handleRadioChange"> No
</label>
</div>

<!-- Checkboxes, shown only if 'showCheckboxes' is 'yes' -->
<div v-if="showCheckboxes === 'yes'" class="field__group">
<label class="input__label input__checkboxLabel input__multiselect" v-for="optionValue in description.optionsOrder" :key="optionValue">
<input type="checkbox" :value="optionValue" :checked="value?.includes(optionValue)" @change="handleChange($event, optionValue)"/>
{{ description.options[optionValue] }}
</label>
</div>
</div>
</template>
*/

<template v-if="is('checkbox')">
<div class="field__group">
<label class="field__checkbox">
Expand Down

0 comments on commit 931198c

Please sign in to comment.