Skip to content

Commit

Permalink
CheckDate Rule Fix
Browse files Browse the repository at this point in the history
Docker Fix
  • Loading branch information
pHAlkaline committed Feb 26, 2024
1 parent 47d93b5 commit 048235a
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Model/Behavior/DateFormatBehavior.php
Expand Up @@ -77,6 +77,10 @@ function _setValidationFormat($column = null) {
if (!is_null($rule)) {
$field->setRule('date', array('rule' => array('date', strtolower(str_replace(array('-', '/'), '', $this->dateFormat)))));
}
$rule = $field->getRule('checkDate');
if (!is_null($rule)) {
$field->setRule('checkDate', array('rule' => array('date', strtolower(str_replace(array('-', '/'), '', $this->dateFormat)))));
}
}
}

Expand Down
@@ -0,0 +1,20 @@
FROM webdevops/php-apache:7.4

# persistent / runtime deps
RUN apt update && apt -y upgrade
RUN apt install -y wget
RUN wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_amd64.deb
RUN apt install -y \
fontconfig \
libfreetype6 \
libjpeg62-turbo \
libpng16-16 \
libx11-6 \
libxcb1 \
libxext6 \
libxrender1 \
xfonts-75dpi \
xfonts-base

RUN dpkg -i wkhtmltox_0.12.6-1.buster_amd64.deb

@@ -0,0 +1,20 @@
FROM webdevops/php-apache-dev:7.4

# persistent / runtime deps
RUN apt update && apt -y upgrade
RUN apt install -y wget
RUN wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_amd64.deb
RUN apt install -y \
fontconfig \
libfreetype6 \
libjpeg62-turbo \
libpng16-16 \
libx11-6 \
libxcb1 \
libxext6 \
libxrender1 \
xfonts-75dpi \
xfonts-base

RUN dpkg -i wkhtmltox_0.12.6-1.buster_amd64.deb

0 comments on commit 048235a

Please sign in to comment.