File tree Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ Version 2.0.xxxx (xxxx 2015)
80
80
- Implemented: Counters in P1 Electra/Gas month reports per day
81
81
- Implemented: MySensors, V_RAIN
82
82
- Implemented: MySensors, V_WIND/V_GUST/V_DIRECTION
83
+ - Fixed: Blockly, possible saving of 'ghost' events
83
84
84
85
Version 2.0.2284 (February 22th 2015)
85
86
- Fixed: Firefox, RGBW/Setpoint popup
Original file line number Diff line number Diff line change @@ -12953,7 +12953,16 @@ namespace http {
12953
12953
_tSortedEventsInt eitem;
12954
12954
eitem.ID = ID;
12955
12955
eitem.eventstatus = eventStatus;
12956
+ if (_levents.find(Name) != _levents.end())
12957
+ {
12958
+ //Duplicate event name, add the ID
12959
+ szQuery.clear();
12960
+ szQuery.str("");
12961
+ szQuery << Name << " (" << ID << ")";
12962
+ Name = szQuery.str();
12963
+ }
12956
12964
_levents[Name] = eitem;
12965
+
12957
12966
}
12958
12967
//return a sorted event list
12959
12968
std::map<std::string, _tSortedEventsInt>::const_iterator itt2;
@@ -13038,7 +13047,7 @@ namespace http {
13038
13047
if (!parsingSuccessful)
13039
13048
{
13040
13049
13041
- _log.Log(LOG_ERROR, "Webserver eventparser : Invalid data received!");
13050
+ _log.Log(LOG_ERROR, "Webserver event parser : Invalid data received!");
13042
13051
13043
13052
}
13044
13053
else {
Original file line number Diff line number Diff line change 592
592
if ( blockName ) {
593
593
var exists = false ;
594
594
var doSave = false ;
595
- $ ( '#savedEvents option' ) . each ( function ( ) {
595
+ $ ( '#savedEvents option' ) . each ( function ( ) {
596
596
if ( this . text == blockName ) {
597
597
exists = true ;
598
+ id = this . value ;
598
599
}
599
600
} ) ;
600
601
if ( exists ) {
601
602
var answer = confirm ( "Overwrite " + blockName + "?" )
602
603
if ( answer ) {
603
604
doSave = true ;
604
- id = $ ( "#blockId" ) . html ( ) ;
605
605
}
606
606
else {
607
607
doSave = false ;
Original file line number Diff line number Diff line change 1
1
CACHE MANIFEST
2
- # ref 870
2
+ # ref 872
3
3
4
4
CACHE:
5
5
# CSS
You can’t perform that action at this time.
0 commit comments