trapdirector icon indicating copy to clipboard operation
trapdirector copied to clipboard

Fix issue with updating traps

Open TheFlyingCorpse opened this issue 4 years ago • 0 comments

Fix an "array to string" conversion problem for traps that are already present in the database. Usually seen as "Error in update : Array to string conversion", with an aborted import / update of mibs as a result.

The issue I've come across that this fixes is that instead of passing an entire array to the ":id", it now passes just the ID's to make the query work instead of aborting the process.

On the next run regardless of this fix, the code thinks the trap is already imported if it has already been attempted to be imported before and skips it. This ticket does not fix that issue.

TheFlyingCorpse avatar Mar 20 '21 10:03 TheFlyingCorpse