Comments (2)
Snapshot of Method def:
protected function setActiveFieldForAlbumsFromElement($id, $value)
{
$photo = $this->getPhoto($id);
$albums = $photo['albums'];
...
}
Snapshot of invalid call:
public function deletePhoto($photo)
{
if(!isset($photo['id']))
return false;
$resPhoto = $this->db->execute("UPDATE `{$this->mySqlTablePrefix}photo` SET `active`=0 WHERE `id`=:id AND owner=:owner", array(':id' => $photo['id'], ':owner' => $this->owner));
$this->setActiveFieldForAlbumsFromElement($photo['id'], 'photo', 0);
$this->setActiveFieldForTagsFromElement($photo['id'], 'photo', 0);
return $resPhoto !== false;
}
from frontend.
@jmathai, can you weigh in on this please?
from frontend.
Related Issues (20)
- Discuss future plans for Trovebox HOT 43
- can I edit tag or albums after photo uploaded? HOT 1
- setup-hangs-fails-at-final-step-3 HOT 13
- is trovebox really private if use S3 storage? HOT 1
- can't login in safari browser HOT 2
- Missing Photos in default Album Listing, even after successful upload PLUS duplication of some other photos HOT 4
- S3 bucket eu-central-1 (Frankfurt) not working because of Sigv4 HOT 3
- Error 51 when accessing S3 buckets with a period (.) in the name
- trovebox uploads fail with " Integrity constraint violation:" HOT 6
- Upload photos to Trovebox by dragging them into a folder on Dropbox
- Remove persona support HOT 12
- Define a new governance for the project HOT 2
- Project dead? HOT 4
- a
- installation script does not install prerequisites, and doesn't fail when it can't HOT 4
- Several critical security vulnerabilities - looking for a contact HOT 14
- Frontend capstone project
- Issue Template HOT 3
- [DOCS]: Pull Request template
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frontend.