Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.

Commit

Permalink
Merge pull request #159 from fivejars/master
Browse files Browse the repository at this point in the history
1.5.2 preparation
  • Loading branch information
anpolimus authored Sep 29, 2021
2 parents f67ab25 + 63b35c1 commit 3fb5a6b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion js/gated-content/dist/gated-content.css

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion js/gated-content/src/scss/components/_add-to-calendar.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.add-to-calendar {
button {
margin-right: 10px;
outline: none;
border: 2px solid $concrete;
border-radius: 50%;
background-color: $white;
Expand All @@ -10,6 +9,10 @@
height: 50px;
line-height: 1px;
font-size: 18px;

&:focus {
outline: none;
}
}

.dropdown-menu {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function query() {
// Add the field.
$params = $this->options['group_type'] !== 'group' ? ['function' => $this->options['group_type']] : [];

$formula = $this->query->getDateFormat("FROM_UNIXTIME($this->tableAlias.$this->realField)", 'D, d/m/Y');
$formula = $this->query->getDateFormat("FROM_UNIXTIME($this->tableAlias.$this->realField)", 'D, m/d/Y');

$this->field_alias = $this->query->addField(NULL, $formula, "{$this->tableAlias}_{$this->realField}", $params);
$this->query->addGroupBy($this->field_alias);
Expand Down
4 changes: 2 additions & 2 deletions openy_gated_content.install
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,8 @@ function openy_gated_content_update_8018() {
$entity_type->setClass(VyFavoriteItem::class);
$definitions = VyFavoriteItem::baseFieldDefinitions($entity_type);
foreach ($definitions as $name => $definition) {
if ($definition_manager->getFieldStorageDefinition($name, $entity_type_id)) {
$definition_manager->updateFieldStorageDefinition($definition);
if ($original = $definition_manager->getFieldStorageDefinition($name, $entity_type_id)) {
$definition_manager->updateFieldStorageDefinition($original);
}
else {
$definition_manager->installFieldStorageDefinition($name, $entity_type_id, 'openy_gated_content', $definition);
Expand Down

0 comments on commit 3fb5a6b

Please sign in to comment.