Skip to content

Commit

Permalink
Merge branch 'master' into feature/utils-refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
koertho committed Aug 11, 2021
2 parents 461b6e6 + 0668e36 commit bf2d665
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

## [2.196.3] - 2021-07-09
- fixed bug in DcaUtil::aliasExist()

## [2.196.2] - 2021-07-07
- fixed bug in deprecated StringUtil::camelCaseToDashed()

## [2.196.1] - 2021-07-05
- fixed install issue with symfony 5

Expand Down Expand Up @@ -2535,4 +2541,4 @@ instead

- replaced `heimrichhannot/contao-request` with `heimrichhannot/contao-requets-bundle`

[#24]: https://github.com/heimrichhannot/contao-utils-bundle/pull/24
[#24]: https://github.com/heimrichhannot/contao-utils-bundle/pull/24
2 changes: 1 addition & 1 deletion src/Dca/DcaUtil.php
Expand Up @@ -658,7 +658,7 @@ public function aliasExist(string $alias, int $id, string $table, $options = [])
{
$aliasField = $options['aliasField'] ?? 'alias';

$stmt = $this->connection->prepare("SELECT id FROM {$table} WHERE ' . $aliasField . '=? AND id!=?");
$stmt = $this->connection->prepare('SELECT id FROM '.$table.' WHERE '.$aliasField.'=? AND id!=?');
$stmt->execute([$alias, $id]);

return $stmt->rowCount() > 0;
Expand Down
2 changes: 1 addition & 1 deletion src/String/StringUtil.php
Expand Up @@ -89,7 +89,7 @@ public function endsWith($haystack, $needle)
*/
public function camelCaseToDashed($value)
{
return $this->utils->string()->camelCaseToSnake($value);
return $this->utils->string()->camelCaseToDashed($value);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/UtilsTrait.php
Expand Up @@ -18,7 +18,7 @@
/**
* Trait UtilsTrait.
*
* @internal This trait is only for usage in Utils class. It will be removed when symofony 3 support is dropped.
* @internal This trait is only for usage in Utils class. It will be removed when symfony 3 support is dropped.
*/
trait UtilsTrait
{
Expand Down

0 comments on commit bf2d665

Please sign in to comment.