fix: restore unintended file changes after master flatten rewrite
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
name: myep-next
|
|
||||||
type: php
|
type: php
|
||||||
docroot: public
|
docroot: public
|
||||||
php_version: "8.3"
|
php_version: "8.3"
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
import { Controller } from '@hotwired/stimulus'
|
||||||
|
|
||||||
|
export default class extends Controller {
|
||||||
|
|
||||||
|
static classes = [ 'hidden' ]
|
||||||
|
static targets = [ 'container', 'checkboxGroup' ]
|
||||||
|
static values = { visible: Boolean }
|
||||||
|
|
||||||
|
connect() {
|
||||||
|
this.updateVisibility()
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
this.updateVisibility()
|
||||||
|
}
|
||||||
|
|
||||||
|
updateVisibility() {
|
||||||
|
if (!this.hasCheckboxGroupTarget) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
const checkboxes = this.checkboxGroupTarget.querySelectorAll('input[type="checkbox"]')
|
||||||
|
const hasChecked = Array.from(checkboxes).some(checkbox => checkbox.checked)
|
||||||
|
this.visibleValue = hasChecked
|
||||||
|
}
|
||||||
|
|
||||||
|
visibleValueChanged(visible) {
|
||||||
|
if (this.hasContainerTarget) {
|
||||||
|
this.containerTarget.classList.toggle(this.hiddenClass, false === visible)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -16,14 +16,17 @@ export default class extends Controller {
|
|||||||
trigger: 'click',
|
trigger: 'click',
|
||||||
allowHTML: true,
|
allowHTML: true,
|
||||||
interactive: true,
|
interactive: true,
|
||||||
|
appendTo: document.body,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
options = {
|
options = {
|
||||||
content: this.contentValue,
|
content: this.contentValue,
|
||||||
placement,
|
placement,
|
||||||
touch: false,
|
touch: false,
|
||||||
|
trigger: 'mouseenter focus',
|
||||||
allowHTML: true,
|
allowHTML: true,
|
||||||
interactive: true,
|
interactive: true,
|
||||||
|
appendTo: document.body,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.hasTriggerTarget) {
|
if (this.hasTriggerTarget) {
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ when@prod:
|
|||||||
type: rotating_file
|
type: rotating_file
|
||||||
max_files: 7
|
max_files: 7
|
||||||
path: "%kernel.logs_dir%/%kernel.environment%.auth.log"
|
path: "%kernel.logs_dir%/%kernel.environment%.auth.log"
|
||||||
level: debug
|
level: info
|
||||||
channels: ["auth"]
|
channels: ["auth"]
|
||||||
core:
|
core:
|
||||||
type: rotating_file
|
type: rotating_file
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ class BookingsParser extends AbstractParser
|
|||||||
$booking = new Booking();
|
$booking = new Booking();
|
||||||
|
|
||||||
$booking->id = $this->getIntOrNullValue($node->filterXPath('//id'));
|
$booking->id = $this->getIntOrNullValue($node->filterXPath('//id'));
|
||||||
|
$booking->applicantId = $this->getIntOrNullValue($node->filterXPath('//idadresse_anmelder'));
|
||||||
$booking->bookingNumber = $this->getIntOrNullValue($node->filterXPath('//vorgangsnummer'));
|
$booking->bookingNumber = $this->getIntOrNullValue($node->filterXPath('//vorgangsnummer'));
|
||||||
$booking->status = $this->getStringOrNullValue($node->filterXPath('//status'));
|
$booking->status = $this->getStringOrNullValue($node->filterXPath('//status'));
|
||||||
$booking->participantCount = $this->getIntOrNullValue($node->filterXPath('//personen'));
|
$booking->participantCount = $this->getIntOrNullValue($node->filterXPath('//personen'));
|
||||||
|
|||||||
@@ -35,6 +35,9 @@ class ServicesParser extends AbstractParser
|
|||||||
$service->direction = $node->attr('richtung');
|
$service->direction = $node->attr('richtung');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$service->ageFrom = $this->getIntOrNullValue($node->filterXPath('//altervon'));
|
||||||
|
$service->ageTo = $this->getIntOrNullValue($node->filterXPath('//alterbis'));
|
||||||
|
|
||||||
$services[$service->id] = $service;
|
$services[$service->id] = $service;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ class BookingVoter extends Voter
|
|||||||
/** @var Booking $booking */
|
/** @var Booking $booking */
|
||||||
$booking = $subject;
|
$booking = $subject;
|
||||||
|
|
||||||
if ($booking->applicant->personId !== $user->getPersonId()) {
|
if ($booking->applicant->addressId !== $user->getAddressId()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user