Skip to content

Commit

Permalink
Merge branch 'master' of github.com:opendcim/openDCIM
Browse files Browse the repository at this point in the history
  • Loading branch information
samilliken committed Mar 29, 2024
2 parents d53a7fc + 7acaa90 commit 1d62f23
Show file tree
Hide file tree
Showing 46 changed files with 54,046 additions and 53,320 deletions.
43 changes: 43 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
name: Bug report
about: Create a report to help us improve. If you have a question please check if it has been asked under discussions, first.
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Were you able to reproduce this on the dev or demo sites?**
* https://demo.opendcim.org
* https://dev.opendcim.org


**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
16 changes: 16 additions & 0 deletions .github/workflows/opendcim.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: openDCIM

on:
workflow_dispatch:
push:
branches:
- master

jobs:
build:
runs-on: self-hosted

steps:
- name: Update translations
run: /home/runner/update

3 changes: 2 additions & 1 deletion api/v1/deleteRoutes.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ function updatedevice($deviceid){
}

// If this port isn't the last port then we're gonna shuffle ports to keep the ids in orderish
$lastport=end($pp->getPorts());
$portlist=$pp->getPorts();
$lastport=end($portlist);
if($lastport->PortNumber!=$pp->PortNumber){
foreach($lastport as $prop=>$value){
if($prop!="PortNumber"){
Expand Down
2 changes: 1 addition & 1 deletion classes/PowerDistribution.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ function GetAllBreakerPoles() {
if($panel->NumberScheme=="Odd/Even") {
$adder = $i*2;
}
$next = $this->PanelPole+$adder;
$next = intval($this->PanelPole)+$adder;
$ret = $ret . "-$next";
}
return $ret;
Expand Down
8 changes: 4 additions & 4 deletions classes/PowerPorts.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ function createPort($ignore_errors=false) {
PortNumber=$this->PortNumber, Label=\"$this->Label\",
ConnectedDeviceID=$this->ConnectedDeviceID, ConnectedPort=$this->ConnectedPort,
Notes=\"$this->Notes\";";

if(!$dbh->query($sql) && !$ignore_errors){
$info=$dbh->errorInfo();

error_log("createPort::PDO Error: {$info[2]} SQL=$sql");
try{
$dbh->query($sql);
}catch(PDOException $e){
error_log("createPort::PDO Error: {$e->getMessage()}");
return false;
}

Expand Down
Binary file modified locale/ca_AD/LC_MESSAGES/openDCIM.mo
Binary file not shown.
Loading

0 comments on commit 1d62f23

Please sign in to comment.