Compare commits
7 Commits
608070ec8e
...
2.1
| Author | SHA1 | Date | |
|---|---|---|---|
| 7eae5768ce | |||
| f4b8d8dc76 | |||
| 225a99d135 | |||
| fc82241bb3 | |||
| aca2cf2b67 | |||
| 28ab3d7886 | |||
| bb8e7f359f |
+1
-1
@@ -198,7 +198,7 @@ export function validateNote() {
|
|||||||
* @return {void} This function does not return anything.
|
* @return {void} This function does not return anything.
|
||||||
*/
|
*/
|
||||||
export function newNote() {
|
export function newNote() {
|
||||||
notes = document.querySelector('#notes');
|
var notes = document.querySelector('#notes');
|
||||||
notes.text = '';
|
notes.text = '';
|
||||||
notes.value = '';
|
notes.value = '';
|
||||||
state.references = {};
|
state.references = {};
|
||||||
|
|||||||
@@ -25,13 +25,13 @@ class ReferenceRepository extends ServiceEntityRepository
|
|||||||
->getResult();
|
->getResult();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function findHeidelberg($ref): array|Reference
|
public function findHeidelberg(string $ref): array|Reference
|
||||||
{
|
{
|
||||||
if (substr($ref, 0, 2) == 'ld') {
|
if (substr($ref, 0, 2) == 'ld') {
|
||||||
$num = substr($ref, 2);
|
$num = substr($ref, 2);
|
||||||
$qb = $this->createQueryBuilder('r');
|
$qb = $this->createQueryBuilder('r');
|
||||||
$r = $qb->where($qb->expr()->like('r.label', ':ld'))
|
$r = $qb->where($qb->expr()->like('r.label', ':ld'))
|
||||||
->setParameter('ld', "ld{$num}-%")
|
->setParameter('ld', "LD{$num}-%")
|
||||||
->getQuery()
|
->getQuery()
|
||||||
->getResult()
|
->getResult()
|
||||||
;
|
;
|
||||||
@@ -39,7 +39,7 @@ class ReferenceRepository extends ServiceEntityRepository
|
|||||||
$num = substr($ref, 2);
|
$num = substr($ref, 2);
|
||||||
$qb = $this->createQueryBuilder('r');
|
$qb = $this->createQueryBuilder('r');
|
||||||
$r = $qb->where($qb->expr()->like('r.label', ':hc'))
|
$r = $qb->where($qb->expr()->like('r.label', ':hc'))
|
||||||
->setParameter('hc', "%-hc{$num}")
|
->setParameter('hc', "%-HC{$num}")
|
||||||
->getQuery()
|
->getQuery()
|
||||||
->getResult()
|
->getResult()
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -74,10 +74,10 @@ class DatabaseTransferService
|
|||||||
|
|
||||||
public function transferUserTable(): int
|
public function transferUserTable(): int
|
||||||
{
|
{
|
||||||
$sql = "SELECT * FROM user";
|
$sql = "SELECT * FROM app_user";
|
||||||
$stmt = $this->srcDB->prepare($sql);
|
$stmt = $this->srcDB->prepare($sql);
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
$insQuery = "INSERT INTO user (id, email, roles, password, name, meta_data, home_church_rss) ".
|
$insQuery = "INSERT INTO app_user (id, email, roles, password, name, meta_data, home_church_rss) ".
|
||||||
"VALUES ".
|
"VALUES ".
|
||||||
"(:id, :email, :roles, :password, :name, :meta_data, :home_church)";
|
"(:id, :email, :roles, :password, :name, :meta_data, :home_church)";
|
||||||
$destStmt = $this->destDB->prepare($insQuery);
|
$destStmt = $this->destDB->prepare($insQuery);
|
||||||
|
|||||||
Reference in New Issue
Block a user